diff --git a/@sammo/util/src/converter/entriesWithType.ts b/@sammo/util/src/converter/entriesWithType.ts index 66fb096..706e7e3 100644 --- a/@sammo/util/src/converter/entriesWithType.ts +++ b/@sammo/util/src/converter/entriesWithType.ts @@ -1,6 +1,4 @@ -type Entries = { - [K in keyof T]: [K, T[K]]; -}[keyof T][]; +import type { Entries } from "../types.js"; export function entriesWithType(value: T): Entries{ return Object.entries(value) as unknown as Entries; diff --git a/@sammo/util/src/converter/index.ts b/@sammo/util/src/converter/index.ts index d826ee1..3db2d77 100644 --- a/@sammo/util/src/converter/index.ts +++ b/@sammo/util/src/converter/index.ts @@ -2,4 +2,5 @@ export * from "./combineObject.js"; export * from "./combineArray.js"; export * from "./convertBytesLikeToUint8Array.js"; export * from "./convertIDArray.js"; -export * from "./convertIterableToMap.js" \ No newline at end of file +export * from "./convertIterableToMap.js" +export * from "./entriesWithType.js"; \ No newline at end of file diff --git a/@sammo/util/src/types.ts b/@sammo/util/src/types.ts index 4d46c37..6e75627 100644 --- a/@sammo/util/src/types.ts +++ b/@sammo/util/src/types.ts @@ -3,12 +3,12 @@ export type Nullable = T | null | undefined; export declare type ValuesOf = T[keyof T]; export type IDItem = { - id: T; + id: T; }; export type Entries = { - [K in keyof T]: [K, T[K]]; - }[keyof T][]; + [K in keyof T]: [K, T[K]]; +}[keyof T][]; export type BufferSource = ArrayBufferView | ArrayBuffer | SharedArrayBuffer;