Skip to content

Commit

Permalink
fix: use types we already have
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahetter committed Dec 7, 2024
1 parent 285ced4 commit 3f9cdb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
20 changes: 1 addition & 19 deletions src/commands/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { NetlifyAPI } from 'netlify'

import type { FrameworksAPIPaths } from "../utils/frameworks-api.ts";
import StateConfig from '../utils/state-config.js'
import { Account } from "../utils/types.ts";


// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down Expand Up @@ -82,22 +83,3 @@ export interface AddressInUseError extends Error {
address: string
port: number
}

export interface Account {
id: string;
name: string;
slug: string;
type: string;
capabilities: Record<string, {included: string, used: string}>;
billing_name: string;
billing_email: string;
billing_details: string;
billing_period: string;
payment_method_id: string;
type_name: string;
type_id: string;
owner_ids: string[];
roles_allowed: string[];
created_at: string;
updated_at: string;
}
11 changes: 1 addition & 10 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,7 @@ export interface Account {
name: string
slug: string
type: string
capabilities: {
sites: {
included: number
used: number
}
collaborators: {
included: number
used: number
}
}
capabilities: Record<string, {included: string, used: string}>
billing_name: string
billing_email: string
billing_details: string
Expand Down

0 comments on commit 3f9cdb3

Please sign in to comment.