Skip to content

Commit

Permalink
chore: 🤖 update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
l246804 committed Aug 30, 2023
1 parent 022e024 commit 6802719
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"release": "release-it"
},
"dependencies": {
"@rhao/types-base": "^0.1.3",
"@rhao/types-base": "^0.2.0",
"@types/lodash": "^4.14.197",
"@types/lodash-es": "^4.17.8",
"lodash": "^4.17.21",
Expand All @@ -64,7 +64,7 @@
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@release-it/conventional-changelog": "^7.0.0",
"@rhao/plop-generators": "latest",
"@rhao/plop-generators": "^0.7.1",
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.5.0",
"commitizen": "^4.3.0",
Expand Down
17 changes: 9 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/findTree/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AllowNullish } from '@rhao/types-base'
import type { MaybeNullish } from '@rhao/types-base'
import type { BasicTreeOptions, HelperCreateTreeFuncHandler } from '../tree'
import { helperCreateTreeFunc } from '../tree'

Expand All @@ -11,7 +11,7 @@ export interface FindResult<T = any> {
node: T
paths: string[]
nodes: T[]
parent: AllowNullish<T>
parent: MaybeNullish<T>
tree: T[]
}

Expand Down
6 changes: 3 additions & 3 deletions src/tree/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/indent */
import type { AllowNullish, Fn } from '@rhao/types-base'
import type { Fn, MaybeNullish } from '@rhao/types-base'
import { assign } from 'lodash-unified'
import setupDefaults from '../setupDefaults'
import type { FindResult, FindResultFlag } from '../findTree'
Expand Down Expand Up @@ -45,7 +45,7 @@ export type TreeIterator<T, R = void> = (
/**
* 父级节点
*/
parent: AllowNullish<T>,
parent: MaybeNullish<T>,
/**
* 路径链路
*/
Expand All @@ -64,7 +64,7 @@ export type HelperCreateTreeFuncHandler<O extends BasicTreeOptions, R = void, IR
[
tree: any[],
iter: TreeIterator<any, IR>,
parent: AllowNullish<any>,
parent: MaybeNullish<any>,
paths: string[],
nodes: any[],
childrenKey: string,
Expand Down

0 comments on commit 6802719

Please sign in to comment.