mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #15068 from alexd2580/export-register-language
[react-syntax-highlighter] Export registerLanguage function
This commit is contained in:
Vendored
+3
-1
@@ -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