Installation
npm install --save @types/react-google-picker
Summary
This package contains type definitions for react-google-picker (https://github.com/sdoomz/react-google-picker).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-google-picker.
index.d.ts
/// <reference types="gapi" />
/// <reference types="google.picker" />
import * as React from "react";
export interface GooglePickerProps {
clientId: string;
developerKey: string;
scope?: readonly string[];
viewId?: keyof typeof google.picker.ViewId;
mimeTypes?: readonly string[];
query?: string;
authImmediate?: boolean;
origin?: string;
onChange?: (result: google.picker.ResponseObject) => void;
onAuthenticate?: (oauthToken: string) => void;
onAuthFailed?: (response: GoogleApiOAuth2TokenObject) => void;
createPicker?: (google: typeof self.google, oauthToken: string) => void;
multiselect?: boolean;
navHidden?: boolean;
disabled?: boolean;
}
export default class GooglePicker extends React.Component<React.PropsWithChildren<GooglePickerProps>> {}
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/gapi, @types/google.picker, @types/react
Credits
These definitions were written by Evan Broder.