eta-dev / eta

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
https://eta.js.org
MIT License
1.41k stars 65 forks source link

fix: export EtaConfig #217

Closed rubiin closed 1 year ago

rubiin commented 1 year ago

I am working on a mail module with Eta and require the EtaConfig type. Using typeof config was working but since there is a interface as well, it would look better

nebrelbug commented 1 year ago

@rubiin yes, that does sound more convenient.

Could you try import type { EtaConfig } from "eta/dist/types/config.d.ts" and see if that would work?

rubiin commented 1 year ago

No that would give me an error saying An import path cannot end with a '.d.ts' extension

nebrelbug commented 1 year ago

@rubiin you're right, sorry. import type { EtaConfig } from "eta/dist/types/config" should work though.

rubiin commented 1 year ago

@rubiin you're right, sorry. import type { EtaConfig } from "eta/dist/types/config" should work though.

closing this as this seems to be working