Function
make
(value: T, options?: {
readonly label?: string | undefined
})
Source from the content-addressed store, hash-verified
| 185 | * @since 3.3.0 |
| 186 | */ |
| 187 | export const make = <T>(value: T, options?: { |
| 188 | readonly label?: string | undefined |
| 189 | }): Redacted<T> => { |
| 190 | const self = Object.create(Proto) |
| 191 | if (options?.label) { |
| 192 | self.label = options.label |
| 193 | } |
| 194 | redacted.redactedRegistry.set(self, value) |
| 195 | return self |
| 196 | } |
| 197 | |
| 198 | const Proto = { |
| 199 | [TypeId]: { |
Callers
nothing calls this directly
Tested by
no test coverage detected