feat: update Sheet type #2705

Closed
bluelovers wants to merge 1 commits from patch-1 into master
bluelovers commented 2022-06-07 00:35:47 +00:00 (Migrated from github.com)
No description provided.
SheetJSDev commented 2022-06-07 00:42:39 +00:00 (Migrated from github.com)

What TS version introduced that syntax? The main concern is not breaking the TS versions tied to older versions of angular. Angular 4.x depended on TS 2.2

What TS version introduced that syntax? The main concern is not breaking the TS versions tied to older versions of angular. Angular 4.x depended on TS 2.2
SheetJSDev commented 2022-06-07 02:42:21 +00:00 (Migrated from github.com)

This doesn't even appear to work in the latest TS version: https://www.typescriptlang.org/play?#code/G4QwTgBAHgXBAGASA3gZwC5gJYDsDmAvijgK4C2ARgKZgHwQC8EARAIIBCAwgIwBMAzMwDcAKCA

var x: `${string}${number}` = "ABC123";

Type '"ABC123"' is not assignable to type '${string}${number}'.

It would be neat if there were a way to specify a RegExp for string literal unions but alas.

This doesn't even appear to work in the latest TS version: https://www.typescriptlang.org/play?#code/G4QwTgBAHgXBAGASA3gZwC5gJYDsDmAvijgK4C2ARgKZgHwQC8EARAIIBCAwgIwBMAzMwDcAKCA ```typescript var x: `${string}${number}` = "ABC123"; ``` > Type '"ABC123"' is not assignable to type '`${string}${number}`'. It would be neat if there were a way to specify a RegExp for string literal unions but alas.
bluelovers commented 2022-06-09 23:52:10 +00:00 (Migrated from github.com)

@SheetJSDev this not work for every cell key, but it still is help

@SheetJSDev this not work for every cell key, but it still is help

Pull request closed

Sign in to join this conversation.
No description provided.