Skip to content

Commit a96166d

Browse files
committed
Cleanup
1 parent 353229b commit a96166d

File tree

5 files changed

+49
-24
lines changed

5 files changed

+49
-24
lines changed

packages/firestore/scripts/run-tests.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

repo-scripts/prune-dts/new-tests/data-connect.output.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
1817
/**
1918
* Firebase Data Connect
2019
*

repo-scripts/prune-dts/prune-dts.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import * as yargs from 'yargs';
1919
import * as ts from 'typescript';
2020
import * as fs from 'fs';
2121
import { ESLint } from 'eslint';
22-
import { assert } from 'console';
2322

2423
/**
2524
* Prunes a DTS file based on three main rules:
@@ -156,10 +155,6 @@ function maybeHideConstructor(
156155
?.find(t => t.tagName.escapedText === 'hideconstructor');
157156

158157
if (hideConstructorTag) {
159-
assert(
160-
!ts.canHaveDecorators(node),
161-
'Constructor should not have decorators'
162-
);
163158
const hideConstructorModifier = ts.factory.createModifier(
164159
hideConstructorTag.comment === 'protected'
165160
? ts.SyntaxKind.ProtectedKeyword
@@ -569,7 +564,6 @@ function dropPrivateApiTransformer(
569564
context: ts.TransformationContext
570565
): ts.Transformer<ts.SourceFile> {
571566
const typeChecker = program.getTypeChecker();
572-
// const { factory } = context;
573567

574568
return (sourceFile: ts.SourceFile) => {
575569
function visit(node: ts.Node): ts.Node {
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
declare class A<T> {
19+
a: T;
20+
}
21+
export class B<T> extends A<string> {
22+
b: T;
23+
}
24+
export class C<T> extends A<T> {}
25+
export {};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
export class B<T> {
18+
b: T;
19+
a: string;
20+
}
21+
export class C<T> {
22+
a: T;
23+
}
24+
export {};

0 commit comments

Comments
 (0)