Skip to content

TypeScript types not resolving (Outscraper shows as any) #16

Description

@ipmanlk

The TypeScript type definitions in index.d.ts are not properly resolved, causing the Outscraper class to be typed as any when imported.

import Outscraper from 'outscraper';

const client = new Outscraper('API_KEY');
// client is typed as `any` - no type checking or IntelliSense

Root cause:
The export = Outscraper; statement is placed outside the declare module 'outscraper' block, which breaks TypeScript's module resolution for ambient declarations.

Environment:

  • Runtime: Bun 1.3.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions