oak-frontend-base/src/typings/wx.polyfill.d.ts

26 lines
897 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// <reference path="../../node_modules/@types/wechat-miniprogram/lib.wx.component.d.ts" />
// 这样写就是不行必须要写到platform/wechatMp/index.ts中去不知道为什么……
declare namespace OakMiniprogram {
type OakOptions<
TData extends DataOption,
FormedData extends DataOption,
TProperty extends PropertyOption,
TMethod extends MethodOption,
TCustomInstanceProperty extends IAnyObject = {},
TIsPage extends boolean = false
> = Partial<Data<TData>> &
Partial<Property<TProperty>> &
Partial<Method<TMethod, TIsPage>> &
Partial<OtherOption> &
Partial<Lifetimes> &
ThisType<
Instance<
TData & FormedData,
TProperty,
TMethod,
TCustomInstanceProperty,
TIsPage
>
>
}