Skip to content

Commit

Permalink
chore: remove cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Mar 25, 2018
1 parent f69c217 commit 0e009b2
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.*
.*/
coverage/
node_modules/
npm-debug.log
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Empty file.
60 changes: 30 additions & 30 deletions typings/Path.d.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
import { IOptions } from 'search-params'
import { IToken } from './tokeniser'
import { IOptions } from 'search-params';
import { IToken } from './tokeniser';
export interface IPartialTestOptions {
caseSensitive?: boolean
delimited?: boolean
queryParams?: IOptions
caseSensitive?: boolean;
delimited?: boolean;
queryParams?: IOptions;
}
export interface ITestOptions {
caseSensitive?: boolean
queryParams?: IOptions
caseSensitive?: boolean;
queryParams?: IOptions;
}
export interface IBuildOptions {
ignoreConstraints?: boolean
ignoreSearch?: boolean
queryParams?: IOptions
ignoreConstraints?: boolean;
ignoreSearch?: boolean;
queryParams?: IOptions;
}
export declare type TestMatch = object | null
export declare type TestMatch = object | null;
export default class Path {
static createPath(path: any): Path
path: string
tokens: IToken[]
hasUrlParams: boolean
hasSpatParam: boolean
hasMatrixParams: boolean
hasQueryParams: boolean
spatParams: string[]
urlParams: string[]
queryParams: string[]
params: string[]
source: string
constructor(path: any)
isQueryParam(name: string): boolean
test(path: any, opts: any): TestMatch
partialTest(path: string, opts: IPartialTestOptions): TestMatch
build(params?: object, opts?: IBuildOptions): string
private getParams(type)
private urlTest(path, source, { caseSensitive }?)
static createPath(path: any): Path;
path: string;
tokens: IToken[];
hasUrlParams: boolean;
hasSpatParam: boolean;
hasMatrixParams: boolean;
hasQueryParams: boolean;
spatParams: string[];
urlParams: string[];
queryParams: string[];
params: string[];
source: string;
constructor(path: any);
isQueryParam(name: string): boolean;
test(path: any, opts: any): TestMatch;
partialTest(path: string, opts: IPartialTestOptions): TestMatch;
build(params?: object, opts?: IBuildOptions): string;
private getParams(type);
private urlTest(path, source, {caseSensitive}?);
}
14 changes: 7 additions & 7 deletions typings/rules.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export declare const defaultOrConstrained: (match: string) => string
export declare type RegExpFactory = (match: any) => RegExp
export declare const defaultOrConstrained: (match: string) => string;
export declare type RegExpFactory = (match: any) => RegExp;
export interface IRule {
name: string
pattern: RegExp
regex?: RegExp | RegExpFactory
name: string;
pattern: RegExp;
regex?: RegExp | RegExpFactory;
}
declare const rules: IRule[]
export default rules
declare const rules: IRule[];
export default rules;
14 changes: 7 additions & 7 deletions typings/tokeniser.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export interface IToken {
type: string
match: string
val: any
otherVal: any
regex: RegExp
type: string;
match: string;
val: any;
otherVal: any;
regex: RegExp;
}
declare const tokenise: (str: string, tokens?: IToken[]) => IToken[]
export default tokenise
declare const tokenise: (str: string, tokens?: IToken[]) => IToken[];
export default tokenise;

0 comments on commit 0e009b2

Please sign in to comment.