Type helper Assigning the own property types of all of the enumerable own properties from a source type to a target type.
The source type to Assign from.
The target type to Assign to.
Assign valueOf() to string:
valueOf()
string
import { type Assign } from '@sgrud/core';const str = 'Hello world' as Assign<{ valueOf(): 'Hello world';}, string>; Copy
import { type Assign } from '@sgrud/core';const str = 'Hello world' as Assign<{ valueOf(): 'Hello world';}, string>;
Generated using TypeDoc
Type helper Assigning the own property types of all of the enumerable own properties from a source type to a target type.