error TS2345: Argument of type 'IUser' is not assignable to parameter of type 'never'.
import db from './data/db.json'
interface IUser {
id: number
}
const create = (user: IUser) => {
db.push(user)
}
create({
id: 1,
})
console.log(db)
declare const JSON: {
id: number;
}[];
export default JSON;