Skip to content

Commit

Permalink
0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAster committed Mar 9, 2024
1 parent 8507269 commit b33d3fb
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 16 deletions.
24 changes: 11 additions & 13 deletions LICENCE.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,3 +387,7 @@ const logOwnKeys = (object: any) => {
```

[TODO]: add description for Array::includes & Function::{call, apply, bind}

### `.getTargetRanges()`

[TODO]: add description
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
/// <reference path="./types/element.d.ts" />
/// <reference path="./types/event-target.d.ts" />
/// <reference path="./types/execcommand.d.ts" />
/// <reference path="./types/ecmascript.ts" />
/// <reference path="./types/get-target-ranges.d.ts" />
/// <reference path="./types/ecmascript.d.ts" />
/// <reference path="./types/input-event.d.ts" />
/// <reference path="./types/matches.d.ts" />
/// <reference path="./types/non-standard-stuff.d.ts" />
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "better-typescript",
"version": "0.2.2",
"version": "0.2.3",
"description": "Various TypeScript type definitions to make working with TypeScript more convenient",
"main": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/BenjaminAster/Better-TypeScript.git"
},
"dependencies": {
"new-javascript": ">=0.4.2"
"new-javascript": ">=0.4.3"
},
"author": "Benjamin Aster",
"license": "WTFPL",
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions types/get-target-ranges.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

declare namespace BetterTypeScript {
interface AbstractRange {
readonly collapsed: boolean;
readonly endContainer: Text;
readonly endOffset: number;
readonly startContainer: Text;
readonly startOffset: number;
}

interface StaticRange extends BetterTypeScript.AbstractRange {
}
}

interface InputEvent extends UIEvent {
getTargetRanges(): BetterTypeScript.StaticRange[];
}

0 comments on commit b33d3fb

Please sign in to comment.