@gpugrid/types
v0.1.23
Published
gpugrid Types Module
Downloads
549
Readme
@gpugrid/types
Shared TypeScript types for gpugrid SDKs.
Installation
npm install @gpugrid/typesUsage
Import types directly:
import { Job, Market, JobDefinition } from '@gpugrid/types';Solana Integration
Configure Solana types in your types.ts or index.d.ts file.
Using @solana/kit
import type { Address as SolanaAddress } from '@solana/kit';
declare module '@gpugrid/types' {
interface Address {
_type: SolanaAddress<string>;
}
}Using @solana/web3.js
import type { PublicKey as SolanaPublicKey } from '@solana/web3.js';
declare module '@gpugrid/types' {
interface PublicKey {
_type: SolanaPublicKey;
}
}