mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Use NotNullish
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export default class BinaryTree<T extends {}> {
|
||||
import type NotNullish from "./NotNullish.ts";
|
||||
|
||||
export default class BinaryTree<T extends NotNullish> {
|
||||
left?: BinaryTree<T>;
|
||||
value?: T;
|
||||
right?: BinaryTree<T>;
|
||||
|
||||
3
inputs/passing/helpers/NotNullish.ts
Normal file
3
inputs/passing/helpers/NotNullish.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
type NotNullish = NonNullable<unknown>;
|
||||
|
||||
export default NotNullish;
|
||||
Reference in New Issue
Block a user