New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@types/wouter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/wouter - npm Package Compare versions

Comparing version
2.0.0
to
2.0.1
+57
wouter/preact.d.ts
import {
ComponentChildren,
ComponentType,
FunctionComponent,
VNode
} from "preact";
export type Params = { [paramName: string]: string } | null;
export type Path = string;
export type PushCallback = (to: string) => void;
export type LocationTuple = [Path, PushCallback];
export type Match = [boolean, Params];
export type MatcherFn = (pattern: string, path: Path) => Match;
export interface RouteProps {
children?: ((params: Params) => ComponentChildren) | ComponentChildren;
path: Path;
component?: ComponentType<any>;
match?: boolean;
}
export const Route: FunctionComponent<RouteProps>;
export interface LinkProps {
to?: string;
href?: string;
children: ComponentChildren;
onClick?: () => void;
}
export const Link: FunctionComponent<LinkProps>;
export interface RedirectProps {
to?: string;
href?: string;
}
export const Redirect: FunctionComponent<RedirectProps>;
export interface SwitchProps {
location?: string;
children: Array<VNode<RouteProps>>;
}
export const Switch: FunctionComponent<SwitchProps>;
export interface RouterProps {
hook: () => LocationTuple;
matcher: MatcherFn;
}
export const Router: FunctionComponent<
Partial<RouterProps> & {
children: ComponentChildren;
}
>;
export function useRouter(): RouterProps;
export function useRoute(pattern: string): Match;
export function useLocation(): LocationTuple;
+1
-0
// Type definitions for wouter 2.0
// Project: https://github.com/molefrog/wouter#readme
// Definitions by: Tolkunov Alexander <https://github.com/StrayFromThePath>
// Maksim Karelov <https://github.com/Ty3uK>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -5,0 +6,0 @@ // TypeScript Version: 2.8

+9
-3
{
"name": "@types/wouter",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript definitions for wouter",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "StrayFromThePath"
},
{
"name": "Maksim Karelov",
"url": "https://github.com/Ty3uK",
"githubUsername": "Ty3uK"
}

@@ -23,6 +28,7 @@ ],

"dependencies": {
"@types/react": "*"
"@types/react": "*",
"preact": "10.0.0-beta.3"
},
"typesPublisherContentHash": "af6e1cc8cd72d40c4515e9af777b6ae2a19488d2f78ab92ac4b13ed1683e8ca9",
"typesPublisherContentHash": "39eab5f44c65c16f02ef70f3e43a3360ce90cabd7f6ccaf2ea8ea39ccbe2584b",
"typeScriptVersion": "2.8"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Fri, 21 Jun 2019 00:47:44 GMT
* Dependencies: @types/react
* Last updated: Wed, 10 Jul 2019 20:41:30 GMT
* Dependencies: @types/react, @types/preact
* Global values: none
# Credits
These definitions were written by Tolkunov Alexander <https://github.com/StrayFromThePath>.
These definitions were written by Tolkunov Alexander <https://github.com/StrayFromThePath>, and Maksim Karelov <https://github.com/Ty3uK>.