UNPKG

@veltdev/types

Version:

Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.

20 lines (18 loc) 561 B
import * as velt from './types'; export type * from './types'; export type Velt = { init: (api: string, config: velt.Config) => Velt, loaded: boolean, loadVelt: Function, loadSnippyly: Function } & velt.Velt; export const Velt: { init: (api: string, config?: velt.Config) => Promise<Velt>, loadSnippyly: () => Velt, loadVelt: () => Velt, loaded: boolean } & velt.Velt; //////////////////// // Global object //////////////////// declare global { interface Window { Snippyly: typeof velt.Velt; Velt: typeof velt.Velt; } }