forked from timdown/rangy
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
115 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// this file will be copy to dist/<module>/index.d.ts when running scripts/tsc.ts | ||
import * as rangy from "rangy2"; | ||
export * from "./index"; | ||
import * as m from "./index"; | ||
|
||
declare module "rangy2" { | ||
type ClassApplier = m.ClassApplier; | ||
const ClassApplier: typeof m.ClassApplier; | ||
|
||
type CssClassApplier = m.ClassApplier; | ||
const CssClassApplier: typeof m.ClassApplier; | ||
|
||
const createClassApplier: typeof m.createClassApplier; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// this file will be copy to dist/<module>/index.d.ts when running scripts/tsc.ts | ||
export * from "./index"; | ||
|
||
export as namespace rangy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// this file will be copy to dist/<module>/index.d.ts when running scripts/tsc.ts | ||
import * as rangy from "rangy2"; | ||
export * from "./index"; | ||
import * as m from "./index"; | ||
|
||
declare module "rangy2" { | ||
const registerHighlighterType: typeof m.registerHighlighterType; | ||
const createHighlighter: typeof m.createHighlighter; | ||
type Highlighter = m.Highlighter; | ||
const Highlighter: typeof m.Highlighter; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as rangy from "rangy2"; | ||
export * from "./index"; | ||
import * as m from "./index"; | ||
|
||
declare module "rangy2" { | ||
const saveRange: typeof m.saveRange; | ||
const restoreRange: typeof m.restoreRange; | ||
const saveRanges: typeof m.saveRanges; | ||
const saveSelection: typeof m.saveSelection; | ||
const restoreRanges: typeof m.restoreRanges; | ||
const restoreSelection: typeof m.restoreSelection; | ||
const removeMarkerElement: typeof m.removeMarkerElement; | ||
const removeMarkers: typeof m.removeMarkers; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// this file will be copy to dist/<module>/index.d.ts when running scripts/tsc.ts | ||
import * as rangy from "rangy2"; | ||
export * from "./index"; | ||
import * as m from "./index"; | ||
|
||
declare module "rangy2" { | ||
const nodeToInfoString: typeof m.nodeToInfoString; | ||
const getElementChecksum: typeof m.getElementChecksum; | ||
const serializePosition: typeof m.serializePosition; | ||
const deserializePosition: typeof m.deserializePosition; | ||
const serializeRange: typeof m.serializeRange; | ||
const deserializeRange: typeof m.deserializeRange; | ||
const canDeserializeRange: typeof m.canDeserializeRange; | ||
const serializeSelection: typeof m.serializeSelection; | ||
const deserializeSelection: typeof m.deserializeSelection; | ||
const canDeserializeSelection: typeof m.canDeserializeSelection; | ||
const restoreSelectionFromCookie: typeof m.restoreSelectionFromCookie; | ||
const saveSelectionCookie: typeof m.saveSelectionCookie; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// this file will be copy to dist/<module>/index.d.ts when running scripts/tsc.ts | ||
import * as rangy from "rangy2"; | ||
export * from "./index"; | ||
import * as m from "./index"; | ||
|
||
declare module "rangy2" { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import * as rangy from "rangy2"; | ||
|
||
QUnit.module("Range"); | ||
|
||
function createTestNodes(parentNode, limit, copies) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters