mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Adding a Stringish type
Reviewed By: yungsters Differential Revision: D7984925 fbshipit-source-id: b58bff2fa172f8127d70986accb45af1afca4d68
This commit is contained in:
committed by
Facebook Github Bot
parent
0e707ff843
commit
053c7b2a84
14
flow/Stringish.js
Normal file
14
flow/Stringish.js
Normal 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;
|
||||||
Reference in New Issue
Block a user