typebytes / angular-checklist

🔥 Curated list of common mistakes made when developing Angular applications
https://angular-checklist.dev
MIT License
316 stars 66 forks source link

TSError: ⨯ Unable to compile TypeScript: #56

Closed NilsNaegele closed 5 years ago

NilsNaegele commented 5 years ago

tools/utils.ts(63,10): error TS2352: Conversion of type 'GrayMatterFile the other. If this was intentional, convert the expression to 'unknown' fir [1] Types of property 'data' are incompatible. [1] Type '{ [key: string]: any; }' is not comparable to type 'Checklist [1] Property 'title' is missing in type '{ [key: string]: any; }'.

NilsNaegele commented 5 years ago

make title optional in models.ts file export interface ChecklistFrontMatter { title?: string; summary?: string; description?: string; }