Skip to content

Commit

Permalink
fix(types): add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed May 8, 2024
1 parent 19b0227 commit 56dd1f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

interface ParseResult {
readonly result: {
readonly success: boolean;
Expand All @@ -16,6 +17,11 @@ interface ResolveParameters {
[key: string]: any;
}

interface ResolveOptions {
encoder: (component: string) => string;
}

export function parse(str: string): ParseResult;
export function test(str: string, options?: TestOptions): boolean;
export function resolve(pathTemplate: string, parameters: ResolveParameters): string;
export function resolve(pathTemplate: string, parameters: ResolveParameters, options?: ResolveOptions): string;
export function encodePathComponent(component: string): string;

0 comments on commit 56dd1f6

Please sign in to comment.