Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

let a = new Set(3) {1, 2, 3}
1:17 - No overload matches this call.
1:17 - Overload 1 of 2, '(iterable?: Iterable<any>): Set<any>', gave the following error.
1:17 - Argument of type 'number' is not assignable to parameter of type 'Iterable<any>'.
1:17 - Overload 2 of 2, '(values?: readonly any[]): Set<any>', gave the following error.
1:17 - Argument of type 'number' is not assignable to parameter of type 'readonly any[]'.
1:20 - ',' expected.
1:22 - Cannot redeclare block-scoped variable '(Missing)'.
1:22 - ':' expected.
1:25 - Cannot redeclare block-scoped variable '(Missing)'.
1:25 - ':' expected.
1:28 - Cannot redeclare block-scoped variable '(Missing)'.
1:28 - ':' expected.
Set(3)
1:1 - Value of type 'SetConstructor' is not callable. Did you mean to include 'new'?
new Set()
Set(0) {}
{1, 2, 3}
1:2 - Left side of comma operator is unused and has no side effects.
1:2 - Left side of comma operator is unused and has no side effects.
new Set ([1, 2, 3])
Set(3) { 1, 2, 3 }
let x;
typeof(x)
undefined
x == null
true