@code-to-json/core
Version:
[](https://travis-ci.org/code-to-json/code-to-json) [](https://d
16 lines (13 loc) • 363 B
text/typescript
import { AmdDependency } from 'typescript';
export interface SerializedAmdDependency {
name?: string;
path: string;
}
/**
* Serialize a AmdDependency to a POJO
* @param dep AmdDependency to serialize
*/
export default function serializeAmdDependency(dep: AmdDependency): SerializedAmdDependency {
const { name, path } = dep;
return { name, path };
}