Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Add readonly type annotations in fbt to prepare for natural inference
Browse files Browse the repository at this point in the history
Reviewed By: gkz

Differential Revision: D64935657

fbshipit-source-id: 073502829685b0df06fe3e65191e43ab98332d9b
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Oct 25, 2024
1 parent 286a068 commit d5e6954
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runtime/shared/intlList.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ const fbt = require('fbt');
const invariant = require('invariant');
const React = require('react');

const CONJUNCTIONS = {
const CONJUNCTIONS: $ReadOnly<{|AND: 'AND', NONE: 'NONE', OR: 'OR'|}> = {
AND: 'AND',
NONE: 'NONE',
OR: 'OR',
};

const DELIMITERS = {
const DELIMITERS: $ReadOnly<{|
BULLET: 'BULLET',
COMMA: 'COMMA',
SEMICOLON: 'SEMICOLON',
|}> = {
BULLET: 'BULLET',
COMMA: 'COMMA',
SEMICOLON: 'SEMICOLON',
Expand Down

0 comments on commit d5e6954

Please # to comment.