18 lines
243 B
JavaScript
18 lines
243 B
JavaScript
|
/**
|
||
|
* @flow
|
||
|
*/
|
||
|
|
||
|
export type LiteralMockType = {|
|
||
|
type: 'Literal',
|
||
|
value: string,
|
||
|
raw: string,
|
||
|
|};
|
||
|
|
||
|
export default function LiteralMock(value: string): LiteralMockType {
|
||
|
return {
|
||
|
type: 'Literal',
|
||
|
value,
|
||
|
raw: value,
|
||
|
};
|
||
|
}
|