mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Export registerLanguage
This commit is contained in:
4
react-syntax-highlighter/index.d.ts
vendored
4
react-syntax-highlighter/index.d.ts
vendored
@@ -12,6 +12,8 @@ declare module 'react-syntax-highlighter' {
|
||||
declare module 'react-syntax-highlighter/dist/light' {
|
||||
import * as React from 'react';
|
||||
|
||||
export function registerLanguage(name: string, func: any): void;
|
||||
|
||||
interface SyntaxHighlighterProps {
|
||||
language?: string;
|
||||
style?: any;
|
||||
@@ -498,4 +500,4 @@ declare module 'react-syntax-highlighter/dist/styles/xt256' {
|
||||
declare module 'react-syntax-highlighter/dist/styles/zenburn' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user