Skip to content

Commit

Permalink
Export JSON types
Browse files Browse the repository at this point in the history
Co-authored-by: codershiba <155646804+codershiba@users.noreply.github.com>
  • Loading branch information
EvanHahn and codershiba committed Jan 31, 2024
1 parent 50db144 commit d46f6b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/sub-encoder/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/// <reference types="node" />

type JsonPrimitive = string | number | boolean | null;
type JsonArray = JsonValue[];
interface JsonObject {
export type JsonPrimitive = string | number | boolean | null;
export type JsonArray = JsonValue[];
export interface JsonObject {
[key: string]: JsonValue | undefined;
}
type JsonValue = JsonPrimitive | JsonArray | JsonObject;
export type JsonValue = JsonPrimitive | JsonArray | JsonObject;

interface Encoding<TInput, TOutput = TInput> {
input: TInput;
Expand Down

0 comments on commit d46f6b6

Please sign in to comment.