mirror of https://github.com/status-im/metro.git
Covariant properties for `ModuleTransportLike`
Summary: Make all properties of `ModuleTraansportLike` covariant to enforce read-only behavior at all sites using it. The type only exists for compatibility reasons between old and new output functionality, and covariant properties give us stronger guarantees. Reviewed By: jeanlauliac Differential Revision: D5111667 fbshipit-source-id: 674658b07eb3a229cbc4344cb636e4a9ea4126d1
This commit is contained in:
parent
132d71f0a3
commit
05936a53d4
|
@ -15,7 +15,7 @@ import type {RawMapping} from '../Bundler/source-map';
|
|||
import type Module from '../node-haste/Module';
|
||||
import type {SourceMap} from './SourceMap';
|
||||
|
||||
type SourceMapOrMappings = SourceMap | Array<RawMapping>;
|
||||
export type SourceMapOrMappings = SourceMap | Array<RawMapping>;
|
||||
|
||||
type Metadata = {
|
||||
dependencies?: ?Array<string>,
|
||||
|
|
Loading…
Reference in New Issue