Skip to content

Commit

Permalink
El tipado para JsonObject ha sido reescrito para separar los objetos …
Browse files Browse the repository at this point in the history
…de arreglos.
  • Loading branch information
arcaela committed Jun 29, 2024
1 parent a77cb3a commit 2173601
Showing 1 changed file with 23 additions and 27 deletions.
50 changes: 23 additions & 27 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,38 +71,34 @@ export type Inmutables = boolean | string | number | bigint;
* @description
* Create a plain object as JSON
*/
export type JsonObject =
| {
[K: string | number | symbol]:
| null
| null[]
| undefined
| undefined[]
| Inmutables
| Inmutables[]
| JsonObject
| JsonObject[];
}
| JsonObject[];
export type JsonObject = {
[K: string | number | symbol]:
| null
| null[]
| undefined
| undefined[]
| Inmutables
| Inmutables[]
| JsonObject
| JsonObject[];
};

/**
* @description
* Create a JSON with Function props valid.
*/
export type JavaScriptObject =
| {
[K: string | number | symbol]:
| null
| null[]
| undefined
| undefined[]
| Inmutables
| Inmutables[]
| JsonObject
| JsonObject[]
| Noop;
}
| JsonObject[];
export type JavaScriptObject = {
[K: string | number | symbol]:
| null
| null[]
| undefined
| undefined[]
| Inmutables
| Inmutables[]
| JsonObject
| JsonObject[]
| Noop;
};

/**
* @deprecated
Expand Down

0 comments on commit 2173601

Please sign in to comment.