/
githubmirror
/
immutable-js
Обзор
Документация
Войти
/
githubmirror
/
immutable-js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
type-definitions/flow-tests/predicates.js
17 строк
337 B
Lee Byron
Prepare for Flow upgrade by modernizing flow test syntax (#1864)
21 июл 2021, 02:26
Не верифицирован
21 июл 2021, 02:26
2a642f7
Код
Авторство
О чём код?
// @flow import { List } from 'immutable'; declare var mystery: mixed; // $FlowExpectedError[cannot-resolve-name] maybe.push('3'); if (mystery instanceof List) { maybe.push('3'); } // Note: Flow's support for %checks is still experimental. // Support this in the future. // if (List.isList(mystery)) { // mystery.push('3'); // }