mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
parent
7e7af62444
commit
24a8fc99dc
12
types/react-native-share-menu/index.d.ts
vendored
Normal file
12
types/react-native-share-menu/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
// Type definitions for react-native-share-menu 2.2
|
||||
// Project: https://github.com/meedan/react-native-share-menu#readme
|
||||
// Definitions by: Haseeb Majid <https://github.com/hmajid2301>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface ShareMenu {
|
||||
getSharedText(callback: (text: string) => void): void;
|
||||
clearSharedText(): void;
|
||||
}
|
||||
|
||||
export const ShareMenu: ShareMenu;
|
||||
export default ShareMenu;
|
||||
@ -0,0 +1,5 @@
|
||||
import ShareMenu from 'react-native-share-menu';
|
||||
|
||||
ShareMenu.getSharedText((text: string) => {
|
||||
const message = text;
|
||||
});
|
||||
23
types/react-native-share-menu/tsconfig.json
Normal file
23
types/react-native-share-menu/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-native-share-menu-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/react-native-share-menu/tslint.json
Normal file
1
types/react-native-share-menu/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user