Dear Sir/Madam, I had a perfectly working program. In this program, I used a interface for the data being handled. I named it Currency.
Currency was defined as follows: export interface Currency { currencyCode: string; currencySymbol: string; currencyBaseName: string; fractionSymbol: string; fractionName: string; } Then I made a change to the interface and introduced another attribute so that it looks like this. export interface Currency { currencyCode: string; currencySymbol: string; currencyBaseName: string; fractionSymbol: string; fractionName: string; updateUser: string; } After this change, I have updated my program so that this attribute is available in the Currency instance whenever it is used. However, I am getting the following compilation error. ERROR in src/app/currency/currencyAdd/currencyAdd.component.ts(40,9): error TS2322: Type '{ currencyCode: string; currencySymbol: string; currencyBaseName: string; fractionSymbol: string;...' is not assignable to type 'Currency'. Object literal may only specify known properties, and 'updateUser' does not exist in type 'Currency'. src/app/currency/currencyAdd/currencyAdd.component.ts(86,11): error TS2322: Type '{ currencyCode: any; currencySymbol: any; currencyBaseName: any; fractionSymbol: any; fractionNam...' is not assignable to type 'Currency'. Object literal may only specify known properties, and 'updateUser' does not exist in type 'Currency'. src/app/currency/currencyAdd/currencyAdd.component.ts(114,11): error TS2322: Type '{ currencyCode: string; currencySymbol: any; currencyBaseName: any; fractionSymbol: any;fraction...' is not assignable to type 'Currency'. Object literal may only specify known properties, and 'updateUser' does not exist in type 'Currency'. src/app/currency/currencyUpload/currencyUpload.component.ts(344,41): error TS2322: Type '{ currencyRecord: { currencyCode: string; currencySymbol: string; currencyBaseName: string; fract...' is not assignable to type 'UploadCurrency'. Types of property 'currencyRecord' are incompatible. Type '{ currencyCode: string; currencySymbol: string; currencyBaseName: string; fractionSymbol: string;...' is not assignable to type 'Currency'. Object literal may only specify known properties, and 'updateUser' does not exist in type 'Currency'. Now, the code at src/app/currency/currencyAdd/currencyAdd.component.ts(86,11) is as follows: [image: err.jpeg] Request your kind advice to resolve this issue. Thanks and Regards, Partha -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.