Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a webpack loader #54

Open
kije opened this issue Jun 6, 2024 · 0 comments
Open

Create a webpack loader #54

kije opened this issue Jun 6, 2024 · 0 comments

Comments

@kije
Copy link

kije commented Jun 6, 2024

Create a webpack loader so integration in build chain and existing projects is straight-forward.

This way it would be possible to use it like this:

// src/parseURL.type

type function parseURL = (text) => ^{
    if (parseProtocol<text> extends [infer protocol, infer rest]) {
        return {
            protocol,
            rest
        }
    } else {
        return never
    }
}
// src/my-app.ts
import type { parseURL } from './parseURL.type';

const parseURLImpl: parseURL = () => ...;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant