版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
728 B

  1. import Blob from './Blob';
  2. /**
  3. * Reference:
  4. * https://developer.mozilla.org/en-US/docs/Web/API/File.
  5. *
  6. * Based on:
  7. * https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/file-api/File-impl.js (MIT licensed).
  8. */
  9. export default class File extends Blob {
  10. readonly lastModified: number;
  11. readonly name: string;
  12. /**
  13. * Constructor.
  14. *
  15. * @param bits File bits.
  16. * @param name File name.
  17. * @param [options] Options.
  18. * @param [options.type] MIME type.
  19. * @param [options.lastModifier] Last modified. Defaults to Date.now().
  20. * @param options.lastModified
  21. */
  22. constructor(bits: any, name: any, options?: {
  23. type?: string;
  24. lastModified?: number;
  25. });
  26. }