-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export generic load() function, and generate type-only .d.ts files #51
base: main
Are you sure you want to change the base?
Conversation
/* DO NOT EDIT! */ | ||
/* istanbul ignore file */ | ||
/* eslint-disable */ | ||
import * as pklTypescript from "@pkl-community/pkl-typescript" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these imports arent needed now right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are if we use custom types like pklTypescript.Any
loadFromPath(configFile).then((config) => { | ||
console.log("Loaded config values from Pkl:", JSON.stringify(config)); | ||
loadFromPath<ConfigSchema>(configFile) | ||
.then((config) => { | ||
console.log("Loaded config values from Pkl:", JSON.stringify(config)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines best illustrate what the expected change in usage would be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me!
No description provided.