Skip to content

Commit

Permalink
Merge pull request #940 from Himself65/master
Browse files Browse the repository at this point in the history
fix: types
  • Loading branch information
spencermountain authored Jul 28, 2022
2 parents ddf6ec4 + e8e5797 commit 6a58ff8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions types/one.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import View from './view/one'
import type { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import type View from './view/one'

/** parse a given text */
declare function nlp(text: string, lexicon?: Lexicon): View
Expand Down
4 changes: 2 additions & 2 deletions types/three.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import View from './view/three'
import type { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import type View from './view/three'

/** parse a given text */
declare function nlp<PluginTypes = {}>(text: string, lexicon?: Lexicon): View & PluginTypes
Expand Down
4 changes: 2 additions & 2 deletions types/two.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import View from './view/two'
import type { Lexicon, Plugin, matchOptions, Match, Net } from './misc'
import type View from './view/two'

/** parse a given text */
declare function nlp(text: string, lexicon?: Lexicon): View
Expand Down
10 changes: 5 additions & 5 deletions types/view/one.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Document, Pointer, Groups, JsonProps, outMethods, matchOptions, Term, Net } from '../misc'
import type { Document, Pointer, Groups, JsonProps, outMethods, matchOptions, Term, Net } from '../misc'

class View {
declare class View {
// Utils
/** is this document empty? */
found: boolean
Expand Down Expand Up @@ -51,7 +51,7 @@ class View {
/** sample a subset of the results */
random: (n?: number) => View

// Accessors
// Accessors
/** split-up results by each individual term */
terms: (n?: number) => View
/** grab a specific named capture group */
Expand Down Expand Up @@ -220,7 +220,7 @@ class View {
cache: (options?: object) => View
/** un-freezes the current state of the document, so it may be transformed */
uncache: (options?: object) => View
/*
/*
harden: () => View
soften: () => View
*/
Expand All @@ -232,4 +232,4 @@ class View {

}

export default View
export default View
2 changes: 1 addition & 1 deletion types/view/three.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import View from './two'
import type View from './two'

interface Three extends View {
// Selections
Expand Down
4 changes: 2 additions & 2 deletions types/view/two.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import View from './one'
import type View from './one'

interface Two extends View {
/** return any multi-word terms, like "didn't" */
Expand All @@ -17,4 +17,4 @@ interface Contractions extends View {
expand: () => View
}

export default Two
export default Two

0 comments on commit 6a58ff8

Please sign in to comment.