We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果希望在项目中扩展一些自定义的api, 下面的这种方法似乎不能覆盖 掉原有的$tw
import { ITiddlyWiki } from 'tw5-typed'; export interface TiddlyWiki extends ITiddlyWiki { Notify: { name: string; }; } declare global { export const $tw: TiddlyWiki; }
The text was updated successfully, but these errors were encountered:
在 src\core.d.ts , 你看
wiki: Wiki; boot: IBoot; crypto: Crypto; utils: IUtils; config: IConfig; version: string; safeMode: boolean; modules: IModules; rootWidget: Widget; notifier: Notifier; language: ILanguage; locationHash: string; fakeDocument: IFakeDocument; passwordPrompt: PasswordPrompt; packageInfo: Record<string, unknown>; modal: IModal;
那一大摞
Sorry, something went wrong.
似乎只能通过直接修改 core.d.ts 的方式修改 ITiddlywiki 接口, 不能 直接在项目的 types.d.ts 里面继承 该接口,然后覆盖
No branches or pull requests
如果希望在项目中扩展一些自定义的api, 下面的这种方法似乎不能覆盖 掉原有的$tw
The text was updated successfully, but these errors were encountered: