Closed
Description
With TypeScript 2.9, our code does not compile anymore. The problematic piece is
constructor(data?: KeyDataString) {
const identities: PublicIdentity[] = [];
const privkeys = new Map<string, Ed25519Keypair>();
if (data) { // data is always of type undefined
const decodedData = JSON.parse(data); // data is always of type undefined
Both constructor(data?: KeyDataString)
and constructor(data: KeyDataString | undefined)
do not work anymore, while constructor(data?: string)
and constructor(data: string | undefined)
are not problem.
I guess this is a bug in Typescript, so the next steps would be to write a minimal example and file a bugreport.
Metadata
Metadata
Assignees
Labels
No labels