Skip to content

How might one apply a type to the root object and a property? #17

Answered by bioball
drewwyatt asked this question in Q&A
Discussion options

You must be logged in to vote

Also, you might want to add this to your module, because Prettierrc produces JSON. This means that you don't need to provide -f json when rendering using the CLI.

 module io.prettier.PrettierRC

 extends "Options.pkl"

+ output {
+   renderer = new JsonRenderer {}
+ }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bioball
Comment options

Answer selected by drewwyatt
@drewwyatt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants