Skip to content

Commit

Permalink
Optional ParamTypes added
Browse files Browse the repository at this point in the history
  • Loading branch information
RNEvok committed Mar 6, 2024
1 parent 2d49721 commit a85f273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ declare module '@appklaar/codebud' {

type InstructionPrototype = "login" | "logout";

type ParamType = "number" | "string" | "object" | "array" | "boolean";
type BaseParamType = "number" | "string" | "object" | "array" | "boolean";
type OptionalParamType = `?${BaseParamType}`;
type ParamType = BaseParamType | OptionalParamType;

type InstructionPublicFields = {
id: string;
Expand Down
4 changes: 3 additions & 1 deletion types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export type ErrorResponse = {

type InstructionPrototype = "login" | "logout";

type ParamType = "number" | "string" | "object" | "array" | "boolean";
type BaseParamType = "number" | "string" | "object" | "array" | "boolean";
type OptionalParamType = `?${BaseParamType}`;
type ParamType = BaseParamType | OptionalParamType;

type InstructionPublicFields = {
id: string;
Expand Down

0 comments on commit a85f273

Please sign in to comment.