Skip to content
Myr

fix(ts): --target=es5 compatibility

Before adoption: this commit came in with the history the project adopted, so no landing records it.

I noticed that "@types/lodash" uses this declaration for ES5 compatibility. Fixes #321

authored by Alec Larson · committed by Alec Larson · parent 6963420 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:src/immer.d.ts+8 added
236 unmodified lines
237 base: T238 copy: T239 assigned: {[prop: string]: boolean; [index: number]: boolean}240}241242// Backward compatibility with --target es5243declare global {244 interface Set<T> {}245 interface Map<K, V> {}246 interface WeakSet<T> {}247 interface WeakMap<K extends object, V> {}248}