diff --git a/CHANGELOG.md b/CHANGELOG.md index 38e02661..bd1d01aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Remove `reduceReverse` in favor of `reduceRight`. https://github.com/rescript-association/rescript-core/pull/49 - Fixed type signatures of `reduce` and `reduceWithIndex`. https://github.com/rescript-association/rescript-core/pull/49 - Add `panic`/`Error.panic`. https://github.com/rescript-association/rescript-core/pull/72 +- The globally available `null` value now originates from `Nullable` and not `Null`, just like the globally available `undefined` value does. https://github.com/rescript-association/rescript-core/pull/88 ### Documentation diff --git a/src/RescriptCore.res b/src/RescriptCore.res index d76bcde0..74fdad58 100644 --- a/src/RescriptCore.res +++ b/src/RescriptCore.res @@ -47,7 +47,7 @@ module Intl = Core__Intl @val external document: Dom.document = "document" @val external globalThis: {..} = "globalThis" -external null: Core__Null.t<'a> = "#null" +external null: Core__Nullable.t<'a> = "#null" external undefined: Core__Nullable.t<'a> = "#undefined" external typeof: 'a => Core__Type.t = "#typeof"