Joe Krill
Joe Krill
Yeah apologies for that, totally my fault! I've fixed the treeview plug, so as long as you're on the latest version before you upgrade this shouldn't be a problem. I...
> If you want to allow unknown keys and let them be passthrough in the schema you would do that via a keySignature: I tried this but it doesn't provide...
I tried various configs. Using the [`tsconfig.json` straight from this repo's master branch](https://github.com/davidmdm/myzod/blob/b7a36473ff9e8eae49029d4f291815e2f2f3a622/tsconfig.json) I get: This is Typescript 4.2.4 Upon further investigation, it seems to depend on my import. Following...
Actually it looks like it ultimately comes down to the `keySignature` usage. That `myzod.keySignature` usage is the problem:
> that's very odd because if I add this test it passed: It is very strange. I guess you'd have to actually add a check for the types produced to...
This workaround works great, thanks. Thanks for being so responsive!
I just wanted to update this with some additional, similar behavior I'm seeing, which I'm pretty sure is related. First, using `coerce()` or `map()` on _any_ property _within_ an object...
I think this could be done pretty easily with a plug. Maybe have a default language and allow it to be overridden with a Frontmatter tag? I wonder how this...
@inos-github sorry that should be: ```space-script silverbullet.registerFunction("setLang", (lang = "en") => { document.documentElement.lang = lang; }); ``` (I fixed the original comment, too)
@inos-github hmm, I guess SilverBullet also runs this code on the server? You can try something like this: ```space-script silverbullet.registerFunction("setLang", (lang = "en") => { if (typeof document !== "undefined")...