Skip to content

Commit

Permalink
Mark media features as public
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Jan 22, 2024
1 parent 0cfea52 commit 9a41211
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/alfa-css-feature/src/media/feature/height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Value } from "./value";
/**
* {@link https://drafts.csswg.org/mediaqueries-5/#height}
*
* @internal
* @public
*/
export class Height extends Media<"height", Length.Fixed> {
public static of(value: Value<Length.Fixed>): Height {
Expand Down Expand Up @@ -42,7 +42,7 @@ export class Height extends Media<"height", Length.Fixed> {
}

/**
* @internal
* @public
*/
export namespace Height {
function from(value: Option<Value<Length.Fixed>>): Height {
Expand Down
3 changes: 3 additions & 0 deletions packages/alfa-css-feature/src/media/feature/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const { delimited, either, option } = Parser;

export type Media = media.Media;

/**
* @public
*/
export namespace Media {
export type JSON = media.Media.JSON;

Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-css-feature/src/media/feature/orientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Value } from "./value";
/**
* {@link https://drafts.csswg.org/mediaqueries-5/#orientation}
*
* @internal
* @public
*/
export class Orientation extends Media<"orientation", Keyword> {
public static of(value: Value<Keyword>): Orientation {
Expand All @@ -33,7 +33,7 @@ export class Orientation extends Media<"orientation", Keyword> {
}

/**
* @internal
* @public
*/
export namespace Orientation {
function from(value: Option<Value<Keyword>>): Orientation {
Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-css-feature/src/media/feature/scripting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Value } from "./value";
/**
* {@link https://drafts.csswg.org/mediaqueries-5/#scripting}
*
* @internal
* @public
*/
export class Scripting extends Media<"scripting", Keyword> {
public static of(value: Value<Keyword>): Scripting {
Expand All @@ -33,7 +33,7 @@ export class Scripting extends Media<"scripting", Keyword> {
}

/**
* @internal
* @public
*/
export namespace Scripting {
function from(value: Option<Value<Keyword>>): Scripting {
Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-css-feature/src/media/feature/width.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Value } from "./value";
/**
* {@link https://drafts.csswg.org/mediaqueries-5/#width}
*
* @internal
* @public
*/
export class Width extends Media<"width", Length.Fixed> {
public static of(value: Value<Length.Fixed>): Width {
Expand Down Expand Up @@ -42,7 +42,7 @@ export class Width extends Media<"width", Length.Fixed> {
}

/**
* @internal
* @public
*/
export namespace Width {
function from(value: Option<Value<Length.Fixed>>): Width {
Expand Down

0 comments on commit 9a41211

Please sign in to comment.