console.log('Hello world')
js
// define release yearstypereleaseYear = '2022' | '2023' | '2024';// define release monthstypereleasteMonth = '03' | '07' | '11';// combine the two types in a template stringtypeversionNumber = `${releasteMonth }.${releaseYear }`;constType '"04.2022"' is not assignable to type '"03.2022" | "03.2023" | "03.2024" | "07.2022" | "07.2023" | "07.2024" | "11.2022" | "11.2023" | "11.2024"'. Did you mean '"03.2022"'?2820Type '"04.2022"' is not assignable to type '"03.2022" | "03.2023" | "03.2024" | "07.2022" | "07.2023" | "07.2024" | "11.2022" | "11.2023" | "11.2024"'. Did you mean '"03.2022"'?: version versionNumber = "04.2022";
js
consta = {joo : 'test'};Property 'foo' does not exist on type '{ joo: string; }'.2339Property 'foo' does not exist on type '{ joo: string; }'.console .log (a .); foo
ts
interfacePerson {name : string}interfacePerson {age : number}// `Person` is now merged and expects `name` and `age`constProperty 'name' is missing in type '{ age: number; }' but required in type 'Person'.2741Property 'name' is missing in type '{ age: number; }' but required in type 'Person'.: p Person = {age : 99}
Sponsored
My Berlin friends are running regular usability tests for their low code, open-source workflow automation tool. All you have to do is to sign-up for a 60 minute video call, where they will guide you through a few tasks. You’ll get rewarded with a 40€ Amazon voucher.
[css-conditional] [css-contain] `srcset` and `sizes` interaction with container queries