Skip to content

Commit

Permalink
chore(bcd-utils-api): export interfaces from package (#28)
Browse files Browse the repository at this point in the history
we need to access them in yari
  • Loading branch information
LeoMcA authored Nov 20, 2023
1 parent 0e0017b commit 4d73475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ import bcd, {
VersionValue,
} from "@mdn/browser-compat-data";

interface Data {
export interface Data {
data: IdentifierExtended;
query: string;
browsers: Browsers;
}

interface SimpleSupportStatementExtended extends SimpleSupportStatement {
export interface SimpleSupportStatementExtended extends SimpleSupportStatement {
release_date?: string;
version_last?: VersionValue;
}

interface CompatStatementExtended extends CompatStatement {
export interface CompatStatementExtended extends CompatStatement {
support: Partial<Record<BrowserName, SimpleSupportStatementExtended[]>>;
}

interface IdentifierExtended {
export interface IdentifierExtended {
[key: string]: IdentifierExtended | CompatStatementExtended;
}

Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdn/bcd-utils-api",
"version": "0.0.4",
"version": "0.0.5",
"description": "Converts bcd data into json files usable by yari's bcd table",
"homepage": "https://github.com/mdn/bcd-utils#readme",
"bugs": {
Expand Down

0 comments on commit 4d73475

Please sign in to comment.