Skip to content

Commit 09e5408

Browse files
committed
deprecate unsafe host-specific bindings from stdlib
Fixes rescript-lang/rescript-core#240
1 parent 1d8560f commit 09e5408

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/Stdlib.res

+3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ type null<+'a> = Primitive_js_extern.null<'a>
5353
type undefined<+'a> = Primitive_js_extern.undefined<'a>
5454
type nullable<+'a> = Primitive_js_extern.nullable<'a>
5555

56+
@deprecated("Use rescript-webapi instead")
5657
@val external window: Dom.window = "window"
58+
@deprecated("Use rescript-webapi instead")
5759
@val external document: Dom.document = "document"
60+
@deprecated("Use rescript-webapi instead")
5861
@val external globalThis: {..} = "globalThis"
5962

6063
/**

0 commit comments

Comments
 (0)