UNPKG

@sourcegraph/scip-typescript

Version:
13 lines (12 loc) 275 B
export function propertyAssignment() { return { a: 'a' } } export function shorthandPropertyAssignment() { const a = 'a' return { a } } type A = { a: string; b: number } export function typedPropertyAssignment(): A { // prettier-ignore return { a: 'a', "b": 10 } }