Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #85 from kevinhermawan/master
Browse files Browse the repository at this point in the history
Add TypeScript declarations file
  • Loading branch information
jordanbyron authored May 27, 2019
2 parents 9b11753 + 8dc84d4 commit da108e0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare module 'react-native-quick-actions' {

export interface ShortcutItem {
type: string;
title: string;
subtitle?: string;
icon: string;
userInfo: {
url: string
}
}

export function popInitialAction(): Promise<ShortcutItem>;

export function setShortcutItems(shortcutItems: Array<ShortcutItem>): void;

export function clearShortcutItems(): void;

export function isSupported(callback: (error: Error | any, supported: boolean) => void): void;
}

0 comments on commit da108e0

Please sign in to comment.