Test generics in object methods in TypeScript (#5989)

This commit is contained in:
Chris Brody authored and Lucas Duailibe committed 2019-04-08 16:56:39 -03:00
1 parent 4d6ce371fe
commit 6ae41067cf
3 files changed
+29

No files matched your search

@@ -0,0 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`object-method.ts 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
| printWidth
=====================================input======================================
export default {
load<K, T>(k: K, t: T) {
return {k, t};
}
}
=====================================output=====================================
export default {
load<K, T>(k: K, t: T) {
return { k, t };
}
};
================================================================================
`;
+1
View File
@@ -0,0 +1 @@
run_spec(__dirname, ["typescript"]);
@@ -0,0 +1,5 @@
export default {
load<K, T>(k: K, t: T) {
return {k, t};
}
}