Skip to content

Commit

Permalink
cellify: type Key
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed Apr 14, 2024
1 parent 7314aba commit 0f418c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cellify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export const _uncellify = async <T>(
return value as Uncellified<T>;
};

export type Path = (string | number)[];
export type Key = string | number;
export type Path = Key[];

/**
* follow a static path for a Cellified value.
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export {
follow,
isObject,
type Cellified,
type Key,
type Path,
type Uncellified
} from "./cellify";
Expand Down

0 comments on commit 0f418c2

Please sign in to comment.