mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
236 B
JavaScript
11 lines
236 B
JavaScript
type Params = {count: number; [name: string]: string};
|
|
type QueryFunction = (params: Params) => string;
|
|
|
|
var o: { foo: QueryFunction } = {
|
|
foo(params) {
|
|
return params.count; // error, number ~/~ string
|
|
}
|
|
};
|
|
|
|
module.exports = o;
|