Skip to content

Commit

Permalink
Merge branch 'master' of github.com:deepkit/deepkit-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 30, 2023
2 parents 423594e + aadc4b9 commit 455f243
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/type-compiler/deepkit-type-install.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node

try {
require('./dist/cjs/install-transformer.js');
Expand Down
17 changes: 17 additions & 0 deletions packages/type-compiler/tests/transpile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,23 @@ test('keep "use x" at top', () => {
expect(res.app.startsWith('"use client";')).toBe(true);
});

test('inline type definitions should compile', () => {
const res = transpile({
'app': `
function testFn<
T extends ClassType<any>,
Prop extends keyof InstanceType<T>
>(options: {
type: T;
props: Prop[];
}) {
type R = Pick<InstanceType<Schema>, Prop>;
}
`
});
console.log(res);
});

test('class typeName', () => {
const res = transpile({
'app': `
Expand Down

0 comments on commit 455f243

Please sign in to comment.