2018-07-02から1日間の記事一覧
declare interface String { getCount(): number; } (String.prototype as any).getCount = function () { return this.length; }; でimportする。
declare interface String { getCount(): number; } (String.prototype as any).getCount = function () { return this.length; }; でimportする。