Michael Oliver

Results 52 comments of Michael Oliver

I have been able to successfully use frontmatter and context module script exporting stuff.

I am trying to use https://github.com/shikijs/twoslash which provides syntax highlighting and enriches the JS and TS code with static types (see https://shikijs.github.io/twoslash/ for demo, its really nice). It doesn't work...

Okay I got around it again by using the custom highlight function 😄 ```js // svelte.config.js import preprocess from "svelte-preprocess"; import { mdsvex } from "mdsvex"; import { createShikiHighlighter, runTwoSlash,...

@jthegedus I am glad it helped! Since then I have been using [`shiki-twoslash`](https://github.com/shikijs/twoslash) its really nice! Take the following markdown: ````markdown ```ts twoslash type Post = { title: string; description:...

I hit an error while trying to use typescript in my layout files like this: ```svelte export let title: string; {title} ```

A workaround for the TypeScript issue is to use JSDoc types: ```svelte /** @type {import("$lib/types/blog").Post} */ const post = { ...$$restProps }; ```

> just a heads up that all typing will be inline for SQLAlchemy 2.0 and my current development focus is getting typing ported. the typing / structure will also be...

@Artemis69 thank you it works great :)

Maybe they should be suggested instead of? The typing module versions are deprecated and will probably be removed eventually.

I didn't notice that the PEP and docs wording differ. [Docs](https://docs.python.org/3/library/typing.html#module-contents) > The deprecated types will be removed from the [typing](https://docs.python.org/3/library/typing.html#module-typing) module in the first Python version released 5 years...