Skip to content

Commit

Permalink
fix: wechat miniprogram types
Browse files Browse the repository at this point in the history
  • Loading branch information
cicec committed Aug 5, 2021
1 parent a15dd80 commit 95d0188
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
15 changes: 0 additions & 15 deletions src/@types/index.d.ts

This file was deleted.

15 changes: 9 additions & 6 deletions src/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import { is, toData } from './utils'
import diff from './diff'

const observer = {
page: <TData extends DataOption, TCustom extends CustomOption>(
options: PageOptions<TData, TCustom>
page: <
TData extends WechatMiniprogram.Page.DataOption,
TCustom extends WechatMiniprogram.Page.CustomOption
>(
options: WechatMiniprogram.Page.Options<TData, TCustom>
) => {
let dispose: IReactionDisposer

Expand Down Expand Up @@ -36,11 +39,11 @@ const observer = {
},

component: <
TData extends DataOption,
TProperty extends PropertyOption,
TMethod extends MethodOption
TData extends WechatMiniprogram.Component.DataOption,
TProperty extends WechatMiniprogram.Component.PropertyOption,
TMethod extends WechatMiniprogram.Component.MethodOption
>(
options: ComponentOptions<TData, TProperty, TMethod>
options: WechatMiniprogram.Component.Options<TData, TProperty, TMethod>
) => {
let dispose: IReactionDisposer

Expand Down

0 comments on commit 95d0188

Please sign in to comment.