(input: T)
| 150 | */ |
| 151 | // </docs> |
| 152 | export const noSerialize = <T extends object | undefined>(input: T): NoSerialize<T> => { |
| 153 | // only add supported values to the noSerializeSet, prevent console errors |
| 154 | if ((typeof input === 'object' && input !== null) || typeof input === 'function') { |
| 155 | noSerializeSet.add(input); |
| 156 | } |
| 157 | return input as any; |
| 158 | }; |
| 159 | |
| 160 | /** @internal */ |
| 161 | export const _weakSerialize = <T extends object>(input: T): Partial<T> => { |
no outgoing calls
no test coverage detected
searching dependent graphs…