@@ -41,7 +41,7 @@ export function singletonSchema<TScope extends string, TName extends string | nu
41
41
42
42
// Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
43
43
// for the private brand field of TreeNode.
44
- // This numeric id doesn't seem to be stable over incremental builds, and thus causes diffs if the API extractor reports.
44
+ // This numeric id doesn't seem to be stable over incremental builds, and thus causes diffs in the API extractor reports.
45
45
// This is avoided by doing this type conversion.
46
46
// The conversion is done via assignment instead of `as` to get stronger type safety.
47
47
const toReturn : TreeNodeSchemaClass <
@@ -154,7 +154,7 @@ export function typedObjectValues<TKey extends string, TValues>(
154
154
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
155
155
export function enumFromStrings < TScope extends string , const Members extends string > (
156
156
factory : SchemaFactory < TScope > ,
157
- members : Members [ ] ,
157
+ members : readonly Members [ ] ,
158
158
) {
159
159
const names = new Set ( members ) ;
160
160
if ( names . size !== members . length ) {
@@ -182,7 +182,7 @@ export function enumFromStrings<TScope extends string, const Members extends str
182
182
}
183
183
184
184
// TODO: Why does this one generate an invalid d.ts file if exported?
185
- // Tracked by https://github.com/microsoft/TypeScript/issues/56718
185
+ // Tracked by https://github.com/microsoft/TypeScript/issues/58688
186
186
// TODO: replace enumFromStrings above with this simpler implementation when the TypeScript bug is resolved.
187
187
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
188
188
function _enumFromStrings2 < TScope extends string , const Members extends readonly string [ ] > (
0 commit comments