Skip to content

Commit

Permalink
run lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Nov 11, 2024
1 parent 375ac56 commit b35c97f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/build/__tests__/schemaExtractor.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from 'fs/promises';
import { join, resolve } from 'path';

import { HyperwebBuild, HyperwebBuildOptions, schemaExtractorPlugin } from '../src';

const outputDir = resolve(join(__dirname, '/../../../__output__/schema-data'));
Expand Down
7 changes: 4 additions & 3 deletions packages/build/src/schemaExtractor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as ts from 'typescript';
import { Plugin } from 'esbuild';
import { promises as fs } from 'fs';
import * as path from 'path';
import { Plugin } from 'esbuild';
import * as ts from 'typescript';

import { HyperwebBuildOptions } from './build';

interface SchemaExtractorOptions {
Expand Down Expand Up @@ -154,7 +155,7 @@ function hasModifiers(node: ts.Node): node is ts.ClassElement | ts.MethodDeclara
// Helper function to check if a declaration has public visibility
function isPublicDeclaration(node: ts.Node): boolean {
// Check if the node has modifiers and is of a type that may include them
if ("modifiers" in node && Array.isArray(node.modifiers)) {
if ('modifiers' in node && Array.isArray(node.modifiers)) {
return !node.modifiers.some(
(mod: ts.Modifier) =>
mod.kind === ts.SyntaxKind.PrivateKeyword ||
Expand Down

0 comments on commit b35c97f

Please sign in to comment.