Last active
February 23, 2018 17:34
-
-
Save maxmumford/1050465a03c7111b1c28b365570d6311 to your computer and use it in GitHub Desktop.
Basic TypeScript module definition for webcamjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'webcamjs' { | |
export function attach(selector: string): any; | |
export function snap(callback: (dataUri: string) => void): void; | |
export function reset(): void; | |
export function on(event: 'live', callback: () => void): void | |
export function on(event: 'error', callback: (error: Error) => void): void | |
export function off(event: string, callback?: () => void): void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment