Skip to content

Commit 88aead7

Browse files
committed
typings: Make Component::diff readonly
1 parent bd96a9b commit 88aead7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export declare class Component<T = {}> {
66
html: HyperTemplateFunction;
77
svg: HyperTemplateFunction;
88
state: T;
9-
defaultState: T;
9+
readonly defaultState: T;
1010
setState(state: Partial<T> | ((this: this, state: T) => Partial<T>)): void;
1111
}
1212

0 commit comments

Comments
 (0)