Closed alex-wellbelove closed 8 months ago
This:
/// @zod.import(["import { Buffer } from 'node'"]) model MyModel { ...
correctly adds the import to the generated file.
However, this:
/// @zod.import(["import { Buffer } from 'node:buffer'"]) model MyModel { ...
instead includes the comment in the output:
/** * @zod.import(["import { Buffer } from 'node:buffer'"]) */ export const MyModel
and does not add the import to the generated output.
My usecase is:
https://developers.cloudflare.com/workers/runtime-apis/nodejs/buffer/
i also noticed that @ is not supported either, which would be really cool.
@Nerih thiws should work in 2.7.13 now
2.7.13
This:
correctly adds the import to the generated file.
However, this:
instead includes the comment in the output:
and does not add the import to the generated output.
My usecase is:
https://developers.cloudflare.com/workers/runtime-apis/nodejs/buffer/