|
53 | 53 | "kind": 12, |
54 | 54 | "tags": [1], |
55 | 55 | "detail": "t<'a> => 'a", |
56 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use `getOrThrow` instead\n\n\n`getExn(value)` raises an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) == 3\n\nswitch Null.getExn(%raw(\"'ReScript'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"ReScript\"\n}\n\nswitch Null.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null`\n"}, |
| 56 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`getExn(value)` raises an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) == 3\n\nswitch Null.getExn(%raw(\"'ReScript'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"ReScript\"\n}\n\nswitch Null.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null`\n"}, |
57 | 57 | "sortText": "getExn", |
58 | 58 | "insertText": "->Null.getExn", |
59 | 59 | "additionalTextEdits": [{ |
|
137 | 137 | "kind": 12, |
138 | 138 | "tags": [1], |
139 | 139 | "detail": "(t<'a>, 'b, 'a => 'b) => 'b", |
140 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use mapOr instead\n\n"}, |
| 140 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, |
141 | 141 | "sortText": "mapWithDefault", |
142 | 142 | "insertText": "->Null.mapWithDefault", |
143 | 143 | "additionalTextEdits": [{ |
|
149 | 149 | "kind": 12, |
150 | 150 | "tags": [1], |
151 | 151 | "detail": "(t<'a>, 'a) => 'a", |
152 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use getOr instead\n\n"}, |
| 152 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, |
153 | 153 | "sortText": "getWithDefault", |
154 | 154 | "insertText": "->Null.getWithDefault", |
155 | 155 | "additionalTextEdits": [{ |
|
249 | 249 | "kind": 12, |
250 | 250 | "tags": [1], |
251 | 251 | "detail": "t<'a> => 'a", |
252 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use `getOrThrow` instead\n\n\n`getExn(value)` raises an exception if `null` or `undefined`, otherwise returns the value.\n\n```rescript\nswitch Nullable.getExn(%raw(\"'Hello'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"Hello\"\n}\n\nswitch Nullable.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n\nswitch Nullable.getExn(%raw(\"undefined\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null` or `undefined`\n"}, |
| 252 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`getExn(value)` raises an exception if `null` or `undefined`, otherwise returns the value.\n\n```rescript\nswitch Nullable.getExn(%raw(\"'Hello'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"Hello\"\n}\n\nswitch Nullable.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n\nswitch Nullable.getExn(%raw(\"undefined\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null` or `undefined`\n"}, |
253 | 253 | "sortText": "getExn", |
254 | 254 | "insertText": "->Nullable.getExn", |
255 | 255 | "additionalTextEdits": [{ |
|
333 | 333 | "kind": 12, |
334 | 334 | "tags": [1], |
335 | 335 | "detail": "(t<'a>, 'b, 'a => 'b) => 'b", |
336 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use mapOr instead\n\n"}, |
| 336 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, |
337 | 337 | "sortText": "mapWithDefault", |
338 | 338 | "insertText": "->Nullable.mapWithDefault", |
339 | 339 | "additionalTextEdits": [{ |
|
345 | 345 | "kind": 12, |
346 | 346 | "tags": [1], |
347 | 347 | "detail": "(t<'a>, 'a) => 'a", |
348 | | - "documentation": {"kind": "markdown", "value": "Deprecated: Use getOr instead\n\n"}, |
| 348 | + "documentation": {"kind": "markdown", "value": "Deprecated: \n\n"}, |
349 | 349 | "sortText": "getWithDefault", |
350 | 350 | "insertText": "->Nullable.getWithDefault", |
351 | 351 | "additionalTextEdits": [{ |
|
0 commit comments