Skip to content

Commit

Permalink
Mark the type of undefined as Null (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Jan 5, 2022
1 parent 20a151e commit 0d93bfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions node_interop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.1

- Correctly mark the type of the `undefined` getter as `Null`.

## 2.1.0

- Mark the first argument to `Promise.then()` as nullable.
Expand Down
2 changes: 1 addition & 1 deletion node_interop/lib/js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ library node_interop.js;
import 'package:js/js.dart';

@JS()
external dynamic get undefined;
external Null get undefined;

@JS()
abstract class Promise {
Expand Down
2 changes: 1 addition & 1 deletion node_interop/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: node_interop
description: Provides Dart bindings and utility functions for core Node.js modules.
version: 2.1.0
version: 2.1.1
homepage: https://github.com/pulyaevskiy/node-interop
author: Anatoly Pulyaevskiy <[email protected]>

Expand Down

0 comments on commit 0d93bfa

Please sign in to comment.