Skip to content

Commit c2e3e66

Browse files
committed
chore: move type helpers to top
1 parent ecc86a6 commit c2e3e66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { jsonParse, losslessJsonStringify } from './utils.ts'
1414

1515
export type * from './types.ts'
1616

17+
type Mutable<T> = { -readonly [K in keyof T]: T[K] }
18+
1719
type TupleOf<L extends number, T, R extends unknown[] = []> = //
1820
R['length'] extends L ? R : TupleOf<L, T, [T, ...R]>
1921

@@ -65,8 +67,6 @@ export const defaults: SealOptions = /* @__PURE__ */ Object.freeze({
6567
localtimeOffsetMsec: 0,
6668
})
6769

68-
type Mutable<T> = { -readonly [K in keyof T]: T[K] }
69-
7070
/**
7171
* Clones the options object.
7272
* @param options The options to clone.

0 commit comments

Comments
 (0)