rn-shiki 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { LanguageInput, ThemeInput } from 'shiki'
|
2
2
|
import React from 'react'
|
3
3
|
import { Text, View } from 'react-native'
|
4
|
-
import typescript from '../../../vendor/shiki/langs/typescript'
|
5
|
-
import githubDark from '../../../vendor/shiki/themes/github-dark'
|
4
|
+
import typescript from '../../../vendor/shiki/langs/typescript.js'
|
5
|
+
import githubDark from '../../../vendor/shiki/themes/github-dark.js'
|
6
6
|
import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
|
7
7
|
|
8
8
|
interface SyntaxHighlighterProps {
|
package/src/types/shiki.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
declare module '*/vendor/shiki/core/core' {
|
2
|
-
|
3
|
-
}
|
2
|
+
import type { LanguageInput, ThemeInput } from 'shiki'
|
4
3
|
|
4
|
+
export function createHighlighterCore(options: { engine: any, langs: LanguageInput[], themes: ThemeInput[] }): any
|
5
|
+
}
|
5
6
|
declare module '*/vendor/shiki/core/engine-javascript' {
|
6
|
-
export
|
7
|
+
export function createJavaScriptRegexEngine(): any
|
7
8
|
}
|