Closed
Description
openedon Sep 26, 2016
From #11054
interface FolderContentItem{
type: 'folder' | 'file';
}
let a:FolderContentItem[] = [];
a = [1,2,3,4,5].map(v=>({type:'folder'}))
Today this is an error without casting "folder"
to the literal type. We have a contextual type coming from a
that is not being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment