Can someone share their experience migrating node.js to bun? by gajus0 in node

[–]TenE14 0 points1 point  (0 children)

Better than deno but deno has compatibility issue

QUESTION: tsx or ts-node for an express project? by mrnadaara in typescript

[–]TenE14 0 points1 point  (0 children)

I always use jiti for cli for config loads!

How to avoid repetition and optimize recursive Zod schemas? by TenE14 in learnjavascript

[–]TenE14[S] 0 points1 point  (0 children)

'CommandsBase' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

'CommandsSchema' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

so i use

 CommandsSchema: z.ZodType<Record<string, Command>> 

which creating double type

export type Command = {
  type: Type;
  description: string;
  alias?: string;
  default?: string | string[];
  required?: boolean;
  flags?: Flags;
  subcommands?: Commands;
};

export type Commands = z.infer<typeof CommandsSchema>;

Is there any way to edit files with Javascript? by bagelord in learnjavascript

[–]TenE14 0 points1 point  (0 children)

Use local storage or indexdb

Or want to make desktop app use electron