Skip to content

Commit

Permalink
Remove annotations no longer needed (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
mit-mit committed Apr 11, 2023
1 parent bd8bef0 commit 08de7e0
Show file tree
Hide file tree
Showing 8 changed files with 341 additions and 237 deletions.
556 changes: 339 additions & 217 deletions dist/main.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sig.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions lib/node/actions/core.dart
Expand Up @@ -9,29 +9,20 @@ external Core get core;

@JS()
inline class Core {
@JS()
external JSString getInput(JSString name);

@JS()
external void setOutput(JSString name, JSString value);

@JS()
external void info(JSString name);
@JS()
external void warning(JSString name);
@JS()
external void error(JSString name);

@JS()
external void addPath(JSString element);

@JS()
external void exportVariable(JSString name, JSString value);

@JS()
external void setFailed(JSString name);

@JS()
// JSPromise<String>
external JSPromise getIDToken(JSString audience);
}
1 change: 0 additions & 1 deletion lib/node/actions/exec.dart
Expand Up @@ -13,6 +13,5 @@ inline class Exec {
///
/// Output will be streamed to the live console. Returns promise with return
/// code.
@JS()
external JSPromise exec(JSString commandLine, [List<JSString> args]);
}
2 changes: 0 additions & 2 deletions lib/node/actions/http_client.dart
Expand Up @@ -6,14 +6,12 @@ import 'dart:js_interop';

@JS()
inline class HttpClient {
@JS()
external HttpClient(
JSString userAgent,
JSArray handlers,
Map requestOptions,
);

// JSPromise<JSObject>
@JS()
external JSPromise getJson(JSString requestUrl);
}
4 changes: 0 additions & 4 deletions lib/node/actions/tool_cache.dart
Expand Up @@ -14,7 +14,6 @@ inline class ToolCache {
/// @param toolName name of the tool
/// @param versionSpec version of the tool
/// @param arch optional arch. defaults to arch of computer
@JS()
external JSString find(
JSString toolName,
JSString versionSpec, [
Expand All @@ -26,14 +25,12 @@ inline class ToolCache {
/// @param url url of tool to download
/// @returns path to downloaded tool
// JSPromise<String>
@JS()
external JSPromise downloadTool(JSString url);

/// Extract a zip.
///
/// @param file path to the zip
/// @returns path to the destination directory
@JS()
external JSPromise extractZip(JSString file);

/// Caches a directory and installs it into the tool cacheDir
Expand All @@ -43,7 +40,6 @@ inline class ToolCache {
/// @param version version of the tool. semver format
/// @param arch architecture of the tool. Optional.
/// Defaults to machine architecture
@JS()
external JSPromise cacheDir(
JSString sourceDir,
JSString tool,
Expand Down
2 changes: 0 additions & 2 deletions lib/node/fs.dart
Expand Up @@ -15,10 +15,8 @@ inline class FileSystem {
FileSystem(this.fileSystem);

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

/// Read the contents of the [path].
@JS()
external JSString readFileSync(JSString path, [JSString encoding]);
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -4,7 +4,7 @@ description: The setup-dart GitHub Action - download and setup the Dart SDK.
publish_to: none

environment:
sdk: ^3.0.0-356
sdk: ^3.0.0-417

dependencies:
path: ^1.8.0
Expand Down

0 comments on commit 08de7e0

Please sign in to comment.