Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ module.system.node.resolve_dirname=flow_modules
module.system.node.resolve_dirname=node_modules
react.runtime=automatic

experimental.ts_utility_syntax=true
experimental.deprecated_utilities='$ReadOnlyArray' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$NonMaybeType' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$ReadOnly' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='mixed' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$ReadOnlyMap' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$ReadOnlySet' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$Keys' -> '<PROJECT_ROOT>/'
experimental.deprecated_utilities='$Values' -> '<PROJECT_ROOT>/'
experimental.deprecated_colon_extends=<PROJECT_ROOT>/

[strict]
nonstrict-import
sketchy-null
Expand Down
2 changes: 1 addition & 1 deletion apps/platform-tests/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ScrollView } from 'react-native';
import { css, html } from 'react-strict-dom';
import { tokens, themeColors, systemColors } from './tokens.css.js';

type ExampleBlockProps = $ReadOnly<{
type ExampleBlockProps = Readonly<{
title: string,
children: React.Node
}>;
Expand Down
6 changes: 3 additions & 3 deletions apps/platform-tests/src/components/tokens.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { StyleVars } from 'react-strict-dom';
import { css } from 'react-strict-dom';

export const tokens: StyleVars<
$ReadOnly<{
Readonly<{
squareColor: string,
textColor: string,
inputColor: string,
Expand All @@ -29,7 +29,7 @@ export const tokens: StyleVars<
});

export const themeColors: StyleVars<
$ReadOnly<{
Readonly<{
primary100: string,
primary200: string
}>
Expand All @@ -39,7 +39,7 @@ export const themeColors: StyleVars<
});

export const systemColors: StyleVars<
$ReadOnly<{
Readonly<{
squareColor: string,
outlineColor: string
}>
Expand Down
Loading
Loading