4.0.2 • Published 7 months ago
@types/feather-route-matcher v4.0.2
Installation
npm install --save @types/feather-route-matcher
Summary
This package contains type definitions for feather-route-matcher (https://github.com/henrikjoreteg/feather-route-matcher).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/feather-route-matcher.
index.d.ts
// Type definitions for feather-route-matcher 3.1
// Project: https://github.com/henrikjoreteg/feather-route-matcher
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface RouteConfig<T> {
[path: string]: T;
}
interface Match<T> {
page: T;
url: string;
params: { [key: string]: string } | null;
}
interface Matcher<T> {
(path: string): Match<T>;
}
declare function createMatcher<T>(config: RouteConfig<T>): Matcher<T>;
export { createMatcher as default };
Additional Details
- Last updated: Thu, 23 Dec 2021 23:34:37 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by DefinitelyTyped.