Browse Source

refactor: 改下描述

es6
Kira 4 years ago
parent
commit
d6d8d48fef
  1. 12
      typescript/core/plugin.ts

12
typescript/core/plugin.ts

@ -1,13 +1,13 @@
import {_Widget} from "./widget";
import { _Widget } from "./widget";
type configWidgetFn = (options: object) => object
type configObjectFn = (widget: _Widget) => void
type configWidgetFn = (type: string, options: object) => object
type configObjectFn = (type: string, widget: _Widget) => void
export type _config = (widgetFunction: configWidgetFn | configWidgetFn[], objectFunction: configObjectFn | configObjectFn[]) => void
export type _config = (widgetFunction: configWidgetFn | configWidgetFn[], objectFunction: configObjectFn | configObjectFn[]) => void
export type _configWidget = (shorcut: string, widgetFunction: configWidgetFn) => void
export type _configWidget = (shortcut: string, widgetFunction: configWidgetFn) => void
export type _registerObject = (shorcut: string, objectFunction: configObjectFn) => void
export type _registerObject = (shortcut: string, objectFunction: configObjectFn) => void
export type _Plugin = {
config: _config;

Loading…
Cancel
Save