АБ
Size: a a a
m
AO
DS
AO
AO
FB
AO
AO
m
FB
// smth lib
type MyStore = { sid: String }
function releaseKraken(store: MyStore) {
// serve store
}
type MyCustomStore = { myCustomizeId: String, /* what with sid? */ }
const myCustomStore: MyCustomStore = { myCustomizeId: 'bub' }
// Argument of type 'MyCustomStore' is not assignable to parameter of type 'MyStore'.
// Property 'sid' is missing in type 'MyCustomStore' but required in type 'MyStore'.
/* releaseKraken(myCustomStore) */
// ! алярм !
type MyCustomStoreAgain = MyStore & { myCustomizeId: String }
const myCustomStoreAgain: MyCustomStoreAgain = { sid: '!!!-->what here? its private section of lib', myCustomizeId: 'bub' }
// no errors, but what with sid???
releaseKraken(myCustomStoreAgain)
AO
AO
// smth lib
type MyStore = { sid: String }
function releaseKraken(store: MyStore) {
// serve store
}
type MyCustomStore = { myCustomizeId: String, /* what with sid? */ }
const myCustomStore: MyCustomStore = { myCustomizeId: 'bub' }
// Argument of type 'MyCustomStore' is not assignable to parameter of type 'MyStore'.
// Property 'sid' is missing in type 'MyCustomStore' but required in type 'MyStore'.
/* releaseKraken(myCustomStore) */
// ! алярм !
type MyCustomStoreAgain = MyStore & { myCustomizeId: String }
const myCustomStoreAgain: MyCustomStoreAgain = { sid: '!!!-->what here? its private section of lib', myCustomizeId: 'bub' }
// no errors, but what with sid???
releaseKraken(myCustomStoreAgain)
AO
m
// smth lib
type MyStore = { sid: String }
function releaseKraken(store: MyStore) {
// serve store
}
type MyCustomStore = { myCustomizeId: String, /* what with sid? */ }
const myCustomStore: MyCustomStore = { myCustomizeId: 'bub' }
// Argument of type 'MyCustomStore' is not assignable to parameter of type 'MyStore'.
// Property 'sid' is missing in type 'MyCustomStore' but required in type 'MyStore'.
/* releaseKraken(myCustomStore) */
// ! алярм !
type MyCustomStoreAgain = MyStore & { myCustomizeId: String }
const myCustomStoreAgain: MyCustomStoreAgain = { sid: '!!!-->what here? its private section of lib', myCustomizeId: 'bub' }
// no errors, but what with sid???
releaseKraken(myCustomStoreAgain)
AO
m
DS
AO
АБ