Skip to content

Commit

Permalink
make optional call of at() fn use AtOptions instead of duplicating op…
Browse files Browse the repository at this point in the history
…tions again
  • Loading branch information
goastler committed Nov 16, 2023
1 parent 7db7f1e commit b64b582
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/util/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ export function at(
i: number,
options: {
optional: true
noBoundsCheck?: boolean
noWrap?: boolean
}
} & AtOptions
): string | undefined
export function at(str: string, i: number, options?: AtOptions): string
export function at<T>(arr: T[], i: number, options: { optional: true } & AtOptions): T | undefined
Expand Down

0 comments on commit b64b582

Please sign in to comment.