@@ -5,7 +5,7 @@ import type {
55 CodeToTokensBaseOptions ,
66 CodeToTokensOptions ,
77 CodeToTokensWithThemesOptions ,
8- CreatedBundledHighlighterOptions ,
8+ CreateBundledHighlighterOptions ,
99 CreateHighlighterFactory ,
1010 GrammarState ,
1111 HighlighterGeneric ,
@@ -30,7 +30,7 @@ import { createHighlighterCore } from './highlighter'
3030 *
3131 * @example
3232 * ```ts
33- * const createHighlighter = createdBundledHighlighter ({
33+ * const createHighlighter = createBundledHighlighter ({
3434 * langs: {
3535 * typescript: () => import('@shikijs /langs/typescript'),
3636 * // ...
@@ -45,13 +45,13 @@ import { createHighlighterCore } from './highlighter'
4545 *
4646 * @param options
4747 */
48- export function createdBundledHighlighter < BundledLangs extends string , BundledThemes extends string > (
49- options : CreatedBundledHighlighterOptions < BundledLangs , BundledThemes > ,
48+ export function createBundledHighlighter < BundledLangs extends string , BundledThemes extends string > (
49+ options : CreateBundledHighlighterOptions < BundledLangs , BundledThemes > ,
5050) : CreateHighlighterFactory < BundledLangs , BundledThemes >
5151
5252// Implementation
53- export function createdBundledHighlighter < BundledLangs extends string , BundledThemes extends string > (
54- options : CreatedBundledHighlighterOptions < BundledLangs , BundledThemes > ,
53+ export function createBundledHighlighter < BundledLangs extends string , BundledThemes extends string > (
54+ options : CreateBundledHighlighterOptions < BundledLangs , BundledThemes > ,
5555) : CreateHighlighterFactory < BundledLangs , BundledThemes > {
5656 const bundledLanguages = options . langs
5757 const bundledThemes = options . themes
@@ -270,3 +270,8 @@ export function createSingletonShorthands<L extends string, T extends string>(
270270 } ,
271271 }
272272}
273+
274+ /**
275+ * @deprecated Use `createBundledHighlighter` instead.
276+ */
277+ export const createdBundledHighlighter = createBundledHighlighter
0 commit comments