Typ void mimo swego dość wyjątkowego zastosowania jest w TypeScript takim samym typem jak wszystkie inne, dlatego nie ma problemu z przypisaniem go do zmiennej - o ile jej typ nie jest jeszcze określony lub również jest to void:
const voidFunc = (): void => { return; } const val = voidFunc(); const x: string = val; // Type 'void' is not assignable to type 'string'

