Skip to content

Commit

Permalink
Merge pull request #19 from ernestmarcinko/typings-fix
Browse files Browse the repository at this point in the history
Typings fix
  • Loading branch information
ernestmarcinko committed Jul 12, 2024
2 parents 0f87f8a + 2265c36 commit 562cdeb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/domini-core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/domini.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions domini.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ declare module "domini" {

forEach: (callback: (node?: HTMLElementWithFields, index?: number, array?: HTMLElementWithFields[])=>unknown) => this

get: (n: number) => HTMLElementWithFields,
get: {
(): HTMLElementWithFields[],
(n: number): HTMLElementWithFields|undefined,
},

offset: ()=> {
top: number,
Expand Down Expand Up @@ -228,7 +231,6 @@ declare module "domini" {
[otherFields: string]: (...args:unknown)=>this | unknown;
}

import {DOMini} from "./types";
declare const DoMini: DOMini;

export=DoMini;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domini",
"version": "0.2.7",
"version": "0.2.8",
"description": "Minimalistic DOM manipulation tool",
"main": "dist/domini.js",
"types": "domini.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if ( typeof window.DoMini == 'undefined' ) {
// Utility functions container
DoMini._fn = {};

DoMini.version = "0.2.7";
DoMini.version = "0.2.8";
} else {
DoMini = window.DoMini;
}
Expand Down

0 comments on commit 562cdeb

Please sign in to comment.