feat: Utils to do bindLan and have ipv4 and ipv6 if need be

This commit is contained in:
BluJ
2023-04-27 11:22:42 -06:00
parent 353692bf55
commit c7d38fc7ce
79 changed files with 1754 additions and 1744 deletions

View File

@@ -1,10 +1,10 @@
import { _ } from "../../util";
import { _ } from "../../util"
export class IBuilder<A> {
protected constructor(readonly a: A) {}
public build(): A {
return this.a;
return this.a
}
}
export type BuilderExtract<A> = A extends IBuilder<infer B> ? B : never;
export type BuilderExtract<A> = A extends IBuilder<infer B> ? B : never