Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions javascript/src/ParameterType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default class ParameterType<T> {
public readonly name: string | undefined,
regexps: RegExps,
public readonly type: Constructor<T> | Factory<T> | null,
transform: (...match: string[]) => T | PromiseLike<T>,
public readonly useForSnippets: boolean,
public readonly preferForRegexpMatch: boolean
transform?: (...match: string[]) => T | PromiseLike<T>,
public readonly useForSnippets?: boolean,
public readonly preferForRegexpMatch?: boolean
) {
if (transform === undefined) {
transform = (s) => s as unknown as T
Expand Down