mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 18:50:14 +00:00
Added definitions for react-native-uuid
Added definitions for react-native-uuid class.
This commit is contained in:
35
types/react-native-uuid/index.d.ts
vendored
Normal file
35
types/react-native-uuid/index.d.ts
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
// Type definitions for react-native-uuid 1.4
|
||||
// Project: https://github.com/eugenehp/react-native-uuid
|
||||
// Definitions by: hmajid2301 <https://github.com/hmajid2301>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
interface v1 {
|
||||
options?: {
|
||||
node: number[],
|
||||
clockseq: number,
|
||||
msec: number | Date,
|
||||
nsec: number
|
||||
},
|
||||
buffer?: ArrayBuffer,
|
||||
offset?: number
|
||||
}
|
||||
|
||||
interface v4 {
|
||||
options?: {
|
||||
random: number[],
|
||||
rng: (...args: any) => void,
|
||||
},
|
||||
buffer?: ArrayBuffer,
|
||||
offset?: number
|
||||
}
|
||||
|
||||
interface UUID {
|
||||
v1: (options: v1) => string;
|
||||
v4: (options: v4) => string;
|
||||
parse: (id: string, buffer?: ArrayBuffer, offset?: number) => ArrayBuffer;
|
||||
unparse: (id: string, buffer?: ArrayBuffer, offset?: number) => string;
|
||||
noConflict: () => void;
|
||||
}
|
||||
|
||||
export const uuid: UUID;
|
||||
0
types/react-native-uuid/react-native-uuid-tests.ts
Normal file
0
types/react-native-uuid/react-native-uuid-tests.ts
Normal file
24
types/react-native-uuid/tsconfig.json
Normal file
24
types/react-native-uuid/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react-native"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-native-uuid-tests.tsx"
|
||||
]
|
||||
}
|
||||
1
types/react-native-uuid/tslint.json
Normal file
1
types/react-native-uuid/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user