Skip to content

Commit 74b2d41

Browse files
committed
docs(define-stylex): 🐛 fix twoslash
1 parent 2fd7346 commit 74b2d41

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/macros/define-stylex.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ import {
7878
props as _stylex_props,
7979
} from '@stylexjs/stylex'
8080
// virtual module to provide runtime code
81+
// ---cut-start---
82+
// @ts-ignore
83+
// ---cut-end---
8184
import stylex_attrs from '/vue-macros/define-stylex/stylex-attrs'
8285
8386
// ...
@@ -127,6 +130,9 @@ import {
127130
create as _stylex_create,
128131
props as _stylex_props,
129132
} from '@stylexjs/stylex'
133+
// ---cut-start---
134+
// @ts-ignore
135+
// ---cut-end---
130136
import stylex_attrs from '/vue-macros/define-stylex/stylex-attrs'
131137
132138
defineProps<{ bold?: boolean }>()

docs/zh-CN/macros/define-stylex.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ import {
7878
props as _stylex_props,
7979
} from '@stylexjs/stylex'
8080
// 虚拟模块,提供运行时代码
81+
// ---cut-start---
82+
// @ts-ignore
83+
// ---cut-end---
8184
import stylex_attrs from '/vue-macros/define-stylex/stylex-attrs'
8285
8386
// ...
@@ -127,6 +130,9 @@ import {
127130
create as _stylex_create,
128131
props as _stylex_props,
129132
} from '@stylexjs/stylex'
133+
// ---cut-start---
134+
// @ts-ignore
135+
// ---cut-end---
130136
import stylex_attrs from '/vue-macros/define-stylex/stylex-attrs'
131137
132138
defineProps<{ bold?: boolean }>()

0 commit comments

Comments
 (0)