Skip to content

Commit 08de7e0

Browse files
authored
Remove annotations no longer needed (#91)
1 parent bd8bef0 commit 08de7e0

File tree

8 files changed

+341
-237
lines changed

8 files changed

+341
-237
lines changed

dist/main.cjs

+339-217
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sig.txt

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/node/actions/core.dart

-9
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,20 @@ external Core get core;
99

1010
@JS()
1111
inline class Core {
12-
@JS()
1312
external JSString getInput(JSString name);
1413

15-
@JS()
1614
external void setOutput(JSString name, JSString value);
1715

18-
@JS()
1916
external void info(JSString name);
20-
@JS()
2117
external void warning(JSString name);
22-
@JS()
2318
external void error(JSString name);
2419

25-
@JS()
2620
external void addPath(JSString element);
2721

28-
@JS()
2922
external void exportVariable(JSString name, JSString value);
3023

31-
@JS()
3224
external void setFailed(JSString name);
3325

34-
@JS()
3526
// JSPromise<String>
3627
external JSPromise getIDToken(JSString audience);
3728
}

lib/node/actions/exec.dart

-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ inline class Exec {
1313
///
1414
/// Output will be streamed to the live console. Returns promise with return
1515
/// code.
16-
@JS()
1716
external JSPromise exec(JSString commandLine, [List<JSString> args]);
1817
}

lib/node/actions/http_client.dart

-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import 'dart:js_interop';
66

77
@JS()
88
inline class HttpClient {
9-
@JS()
109
external HttpClient(
1110
JSString userAgent,
1211
JSArray handlers,
1312
Map requestOptions,
1413
);
1514

1615
// JSPromise<JSObject>
17-
@JS()
1816
external JSPromise getJson(JSString requestUrl);
1917
}

lib/node/actions/tool_cache.dart

-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ inline class ToolCache {
1414
/// @param toolName name of the tool
1515
/// @param versionSpec version of the tool
1616
/// @param arch optional arch. defaults to arch of computer
17-
@JS()
1817
external JSString find(
1918
JSString toolName,
2019
JSString versionSpec, [
@@ -26,14 +25,12 @@ inline class ToolCache {
2625
/// @param url url of tool to download
2726
/// @returns path to downloaded tool
2827
// JSPromise<String>
29-
@JS()
3028
external JSPromise downloadTool(JSString url);
3129

3230
/// Extract a zip.
3331
///
3432
/// @param file path to the zip
3533
/// @returns path to the destination directory
36-
@JS()
3734
external JSPromise extractZip(JSString file);
3835

3936
/// Caches a directory and installs it into the tool cacheDir
@@ -43,7 +40,6 @@ inline class ToolCache {
4340
/// @param version version of the tool. semver format
4441
/// @param arch architecture of the tool. Optional.
4542
/// Defaults to machine architecture
46-
@JS()
4743
external JSPromise cacheDir(
4844
JSString sourceDir,
4945
JSString tool,

lib/node/fs.dart

-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ inline class FileSystem {
1515
FileSystem(this.fileSystem);
1616

1717
/// Whether the [path] exists, false otherwise.
18-
@JS()
1918
external JSBoolean existsSync(JSString path);
2019

2120
/// Read the contents of the [path].
22-
@JS()
2321
external JSString readFileSync(JSString path, [JSString encoding]);
2422
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: The setup-dart GitHub Action - download and setup the Dart SDK.
44
publish_to: none
55

66
environment:
7-
sdk: ^3.0.0-356
7+
sdk: ^3.0.0-417
88

99
dependencies:
1010
path: ^1.8.0

0 commit comments

Comments
 (0)