Skip to content

Commit 85e7a5c

Browse files
committed
bump version and update docs
1 parent dcf9524 commit 85e7a5c

22 files changed

+4621
-2491
lines changed

package-lock.json

Lines changed: 102 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nodegui/react-nodegui",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "React Native for building cross platform desktop applications",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
@@ -32,12 +32,12 @@
3232
"react": "^16.9.0"
3333
},
3434
"devDependencies": {
35-
"@nodegui/nodegui": "^0.21.0",
36-
"@types/node": "^13.9.3",
35+
"@nodegui/nodegui": "^0.22.0",
36+
"@types/node": "^14.0.12",
3737
"prettier": "^1.18.2",
3838
"react": "^16.13.1",
39-
"typedoc": "^0.17.3",
40-
"typedoc-plugin-markdown": "^2.2.17",
41-
"typescript": "^3.8.3"
39+
"typedoc": "^0.17.7",
40+
"typedoc-plugin-markdown": "^2.3.1",
41+
"typescript": "^3.9.5"
4242
}
4343
}

src/components/GridView/utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ export const offsetForIndex = <T>(
3434
return offset;
3535
};
3636

37-
export const updateDisplacedChildren = <TItem, TParent>(
37+
type Allowed<TItem, TParent> = OnlyType<TItem, SetParentFunc<TParent>>;
38+
export function updateDisplacedChildren<TItem, TParent>(
3839
startIndex: number,
3940
items: Array<
4041
DataWithOffset<
41-
OnlyType<TItem, number> & OnlyType<TItem, SetParentFunc<TParent>>
42+
OnlyType<TItem, number> & Allowed<TItem, TParent>
4243
>
4344
>,
4445
parent: TParent,
4546
sizeKey: keyof OnlyType<TItem, number>,
46-
setParentFuncKey: keyof OnlyType<TItem, SetParentFunc<TParent>>
47-
) => {
47+
setParentFuncKey: keyof Allowed<TItem, TParent>
48+
) {
4849
let offset = offsetForIndex(startIndex, items, sizeKey);
4950

5051
for (let i = startIndex; i < items.length; i++) {

0 commit comments

Comments
 (0)