Skip to content

Commit 05607f0

Browse files
committed
added seamless-immutable typings
1 parent 83e9d0a commit 05607f0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
declare module 'seamless-immutable' {
2+
interface IImmutableArray {
3+
asMutable(): any[];
4+
}
5+
function Immutable(array: any[]): IImmutableArray;
6+
7+
interface IImmutableObject {
8+
from(object: Object): IImmutableObject;
9+
merge(obj: Object): IImmutableObject;
10+
without(key: string | string[], ...restKeys: string[]): IImmutableObject;
11+
asMutable(): Object;
12+
}
13+
function Immutable(object: Object): IImmutableObject;
14+
15+
export default Immutable;
16+
}

0 commit comments

Comments
 (0)