UNPKG

dingtalk-docs-cool-app

Version:

钉钉文档酷应用插件扩展 开发者初始化包

25 lines (24 loc) 851 B
import type { DingdocsWorkbook } from './workbook'; import type { DingdocsBase } from './base'; import type { Base, Workbook } from './script'; export declare class DingdocsScript { run: (funcName: string, ...args: any[]) => Promise<any>; runWithTimeout: (funcName: string, timeout: number, ...args: any[]) => Promise<any>; } declare global { namespace Dingdocs { const script: DingdocsScript; const workbook: DingdocsWorkbook; const base: DingdocsBase; } namespace DingdocsScript { function registerScript(funcName: string, func: Function): void; function registerCustomFunction(funcId: string, func: Function): void; const workbook: Workbook; const base: Base; } } export * from './workbook'; export * from './base'; export * from './common'; export * from './script';