We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3201c2c commit 4e66f24Copy full SHA for 4e66f24
1 file changed
class.test.ts
@@ -393,6 +393,18 @@ Deno.test('IsClass: simple', () => {
393
// Function type (not recommended) does pass for class.
394
// deno-lint-ignore ban-types
395
assertEquals(classOnly((() => {}) as Function), 'function');
396
+
397
+ class Weird {
398
+ public static length(): string {
399
+ return 'weird';
400
+ }
401
402
+ public static name(): number {
403
+ return 123;
404
405
406
407
+ assertEquals(classOnly(Weird), 'function');
408
});
409
410
Deno.test('IsClass: base', () => {
0 commit comments