Skip to content

Commit b38e080

Browse files
Merge pull request #1197 from orta/tsgo-support
Switch from declare module to declare namespace for tsgo support
2 parents b83b8eb + a877ead commit b38e080

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

types/one.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type View from './view/one.d.ts'
55
declare function nlp(text: string, lexicon?: Lexicon): View
66

77
// Constructor
8-
declare module nlp {
8+
declare namespace nlp {
99
/** interpret text without tagging */
1010
export function tokenize(text: string, lexicon?: Lexicon): View
1111
/** scan through text with minimal analysis */

types/three.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type View from './view/three.d.ts'
55
declare function nlp<PluginTypes = {}>(text: string, lexicon?: Lexicon): View & PluginTypes
66

77
// Constructor
8-
declare module nlp {
8+
declare namespace nlp {
99
/** interpret text without tagging */
1010
export function tokenize(text: string, lexicon?: Lexicon): View
1111
/** scan through text with minimal analysis */

types/two.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type View from './view/two.d.ts'
55
declare function nlp(text: string, lexicon?: Lexicon): View
66

77
// Constructor
8-
declare module nlp {
8+
declare namespace nlp {
99
/** interpret text without tagging */
1010
export function tokenize(text: string, lexicon?: Lexicon): View
1111
/** scan through text with minimal analysis */

0 commit comments

Comments
 (0)