File tree Expand file tree Collapse file tree 15 files changed +63
-141
lines changed
interpolated_signal_not_invoked
missing_control_flow_directive
nullish_coalescing_not_nullable
optional_chain_not_nullable
skip_hydration_not_static
text_attribute_not_binding
test/compliance/test_cases/output_function
core/src/render3/reactivity Expand file tree Collapse file tree 15 files changed +63
-141
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,7 @@ export interface WritableSignal<T> extends Signal<T> {
138138 asReadonly ( ) : Signal < T > ;
139139}
140140
141- // Note: needs to be kept in sync with the copies in `render3/reactivity/signal.ts` and
142- // `ngtsc/typecheck/testing/index.ts` to ensure consistent tests.
141+ // Note: needs to be kept in sync with the copies in `render3/reactivity/signal.ts`.
143142export function ɵunwrapWritableSignal < T > ( value : T | { [ WRITABLE_SIGNAL ] : T } ) : T {
144143 return null ! ;
145144}
@@ -217,7 +216,20 @@ export const viewChildren: any = null!;
217216export const contentChild : any = null ! ;
218217export const contentChildren : any = null ! ;
219218
219+ export interface OutputEmitter < T > {
220+ emit ( value : T ) : void ;
221+ subscribe ( listener : ( v : T ) => void ) : void ;
222+ }
223+
220224/** Initializer-based output() API. */
221- export function output < T > ( _opts ?: { alias ?: string } ) : EventEmitter < T > {
225+ export function output < T > ( _opts ?: { alias ?: string } ) : OutputEmitter < T > {
226+ return null ! ;
227+ }
228+
229+ export interface CreateComputedOptions < T > {
230+ equal ?: ( a : T , b : T ) => boolean ;
231+ }
232+
233+ export function computed < T > ( computation : ( ) => T , options ?: CreateComputedOptions < T > ) : Signal < T > {
222234 return null ! ;
223235}
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ ts_library(
2121jasmine_node_test (
2222 name = "test" ,
2323 bootstrap = ["//tools/testing:node_no_angular" ],
24+ data = [
25+ "//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package" ,
26+ ],
2427 deps = [
2528 ":test_lib" ,
2629 ],
You can’t perform that action at this time.
0 commit comments