File tree Expand file tree Collapse file tree 5 files changed +49
-24
lines changed
packages/firestore/scripts Expand file tree Collapse file tree 5 files changed +49
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17-
1817/**
1918 * Firebase Data Connect
2019 *
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import * as yargs from 'yargs';
1919import * as ts from 'typescript' ;
2020import * as fs from 'fs' ;
2121import { 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 {
Original file line number Diff line number Diff line change 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 { } ;
Original file line number Diff line number Diff line change 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 { } ;
You can’t perform that action at this time.
0 commit comments