(o: any)
| 20 | } |
| 21 | |
| 22 | export function clone(o: any) { |
| 23 | if (typeof structuredClone !== "undefined") { |
| 24 | return structuredClone(o); |
| 25 | } else { |
| 26 | return JSON.parse(JSON.stringify(o)); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // stolen from https://github.com/piotrwitek/utility-types/blob/master/src/mapped-types.ts#L77 |
| 31 | export type FunctionKeys<T extends object> = { |