Skip to content

Commit

Permalink
Revert "Add support for web file type"
Browse files Browse the repository at this point in the history
This reverts commit 9bd31ed.
  • Loading branch information
sakari committed Apr 11, 2024
1 parent 70ce0ab commit 9d2f5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/oats-runtime/src/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assert, fail } from './assert';
import * as _ from 'lodash';
import { isEqual, uniq } from 'lodash';
import { ValueClass } from './value-class';
import { NamedTypeDefinition, ObjectType, Type, WebFile } from './reflection-type';
import { NamedTypeDefinition, ObjectType, Type } from './reflection-type';
import { discriminateUnion } from './union-discriminator';
import { getType, getTypeSet, withType } from './type-tag';

Expand Down Expand Up @@ -584,7 +584,7 @@ interface FormDataArguments {
options: string | undefined | { [key: string]: string };
}

export type Binary = WebFile | File | Buffer | FormBinary;
export type Binary = File | Buffer | FormBinary;

export class FormBinary {
constructor(readonly binary: Binary, readonly options?: FormDataArguments['options']) {}
Expand Down
1 change: 0 additions & 1 deletion packages/oats-runtime/src/reflection-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export interface Props {
}

export type AdditionalProp = boolean | Type;
export type WebFile = File;

export interface ObjectType {
readonly type: 'object';
Expand Down

0 comments on commit 9d2f5b1

Please sign in to comment.