Adding a Stringish type

Reviewed By: yungsters

Differential Revision: D7984925

fbshipit-source-id: b58bff2fa172f8127d70986accb45af1afca4d68
This commit is contained in:
Eli White 2018-05-13 01:38:38 -07:00 committed by Facebook Github Bot
parent 0e707ff843
commit 053c7b2a84
1 changed files with 14 additions and 0 deletions

14
flow/Stringish.js Normal file
View File

@ -0,0 +1,14 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
// This type allows Facebook to internally Override
// this type to allow our internationalization type which
// is a string at runtime but Flow doesn't know that.
declare type Stringish = string;