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
1.2.0
to
1.2.1
+58
wouter v1/index.d.ts
// Type definitions for wouter 1.2
// Project: https://github.com/molefrog/wouter#readme
// Definitions by: Tolkunov Alexander <https://github.com/StrayFromThePath>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export type Params = { [paramName: string]: string } | null;
export type Path = string;
export type PushCallback = (to: string) => void;
export type Match = [boolean, Params];
export interface RouteProps {
children?: ((params: Params) => React.ReactNode) | React.ReactNode;
path: Path;
component?: React.ComponentType<any>;
match?: boolean;
}
export const Route: React.FunctionComponent<RouteProps>;
export interface LinkProps {
to?: string;
href?: string;
children: React.ReactElement;
onClick?: () => void;
}
export const Link: React.FunctionComponent<LinkProps>;
export interface RedirectProps {
to?: string;
href?: string;
}
export const Redirect: React.FunctionComponent<RedirectProps>;
export interface SwitchProps {
location?: string;
children: Array<React.ReactElement<RouteProps>>;
}
export const Switch: React.FunctionComponent<SwitchProps>;
export interface History {
path: () => Path;
push: PushCallback;
subscribe: (cb: PushCallback) => () => void;
}
export interface RouterProps {
history: History;
matcher: (pattern: string, path: Path) => Match;
}
export const Router: React.FunctionComponent<Partial<RouterProps>>;
export function useRouter(): RouterProps;
export function useRoute(pattern: string): Match;
export function useLocation(): [Path, PushCallback];
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
{
"name": "@types/wouter",
"version": "1.2.1",
"description": "TypeScript definitions for wouter",
"license": "MIT",
"contributors": [
{
"name": "Tolkunov Alexander",
"url": "https://github.com/StrayFromThePath",
"githubUsername": "StrayFromThePath"
}
],
"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/wouter"
},
"scripts": {},
"dependencies": {
"@types/react": "*"
},
"typesPublisherContentHash": "9da91ad1ce11443b15f7a4765efa7884ed5f46f8c017c3c0b0d1025dad5ea358",
"typeScriptVersion": "2.8"
}
# Installation
> `npm install --save @types/wouter`
# Summary
This package contains type definitions for wouter (https://github.com/molefrog/wouter#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wouter/v1
Additional Details
* Last updated: Fri, 21 Jun 2019 00:47:44 GMT
* Dependencies: @types/react
* Global values: none
# Credits
These definitions were written by Tolkunov Alexander <https://github.com/StrayFromThePath>.
-58
// Type definitions for wouter 1.2
// Project: https://github.com/molefrog/wouter#readme
// Definitions by: Tolkunov Alexander <https://github.com/StrayFromThePath>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export type Params = { [paramName: string]: string } | null;
export type Path = string;
export type PushCallback = (to: string) => void;
export type Match = [boolean, Params];
export interface RouteProps {
children?: ((params: Params) => React.ReactNode) | React.ReactNode;
path: Path;
component?: React.ComponentType<any>;
match?: boolean;
}
export const Route: React.FunctionComponent<RouteProps>;
export interface LinkProps {
to?: string;
href?: string;
children: React.ReactElement;
onClick?: () => void;
}
export const Link: React.FunctionComponent<LinkProps>;
export interface RedirectProps {
to?: string;
href?: string;
}
export const Redirect: React.FunctionComponent<RedirectProps>;
export interface SwitchProps {
location?: string;
children: Array<React.ReactElement<RouteProps>>;
}
export const Switch: React.FunctionComponent<SwitchProps>;
export interface History {
path: () => Path;
push: PushCallback;
subscribe: (cb: PushCallback) => () => void;
}
export interface RouterProps {
history: History;
matcher: (pattern: string, path: Path) => Match;
}
export const Router: React.FunctionComponent<Partial<RouterProps>>;
export function useRouter(): RouterProps;
export function useRoute(pattern: string): Match;
export function useLocation(): [Path, PushCallback];
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
{
"name": "@types/wouter",
"version": "1.2.0",
"description": "TypeScript definitions for wouter",
"license": "MIT",
"contributors": [
{
"name": "Tolkunov Alexander",
"url": "https://github.com/StrayFromThePath",
"githubUsername": "StrayFromThePath"
}
],
"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/wouter"
},
"scripts": {},
"dependencies": {
"@types/react": "*"
},
"typesPublisherContentHash": "91c8c419e528bdf38ce99bfaac3dbb554cd17df9dfe78cfe1089ab8688c34bc1",
"typeScriptVersion": "2.8"
}
# Installation
> `npm install --save @types/wouter`
# Summary
This package contains type definitions for wouter ( https://github.com/molefrog/wouter#readme ).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wouter
Additional Details
* Last updated: Tue, 14 May 2019 21:56:57 GMT
* Dependencies: @types/react
* Global values: none
# Credits
These definitions were written by Tolkunov Alexander <https://github.com/StrayFromThePath>.