mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 00:46:29 +01:00
[fix] fix ctx and dirty type (#7832)
* fix: ctx type * fix: update function dirty type
This commit is contained in:
parent
132dbecc58
commit
ee5479d00e
@ -14,7 +14,7 @@ export interface Fragment {
|
||||
/* claim */ l: (nodes: any) => void;
|
||||
/* hydrate */ h: () => void;
|
||||
/* mount */ m: (target: HTMLElement, anchor: any) => void;
|
||||
/* update */ p: (ctx: any, dirty: any) => void;
|
||||
/* update */ p: (ctx: T$$['ctx'], dirty: T$$['dirty']) => void;
|
||||
/* measure */ r: () => void;
|
||||
/* fix */ f: () => void;
|
||||
/* animate */ a: () => void;
|
||||
@ -24,7 +24,7 @@ export interface Fragment {
|
||||
}
|
||||
interface T$$ {
|
||||
dirty: number[];
|
||||
ctx: null | any;
|
||||
ctx: any[];
|
||||
bound: any;
|
||||
update: () => void;
|
||||
callbacks: any;
|
||||
@ -110,7 +110,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
|
||||
|
||||
const $$: T$$ = component.$$ = {
|
||||
fragment: null,
|
||||
ctx: null,
|
||||
ctx: [],
|
||||
|
||||
// state
|
||||
props,
|
||||
|
Loading…
Reference in New Issue
Block a user